ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to render a code snippet via the Rich Text Editor module.

December 09, 2012 6:28pm

Subscribe [1]
  • #1 / Dec 09, 2012 6:28pm

    jezpeters

    6 posts

    Hi.

    I’m using the Rich Text Editor module, and I have a code snippet of an SVG that I would like to put in a blog post. I have tried everything but I am unable to display the code - whatever I do, the svg is always rendered.

    I found this thread on the Stack Exchange site:

    http://expressionengine.stackexchange.com/questions/972/how-can-i-display-a-code-example-html-plus-ee-tags-in-my-blog-post

    I’m thinking that I will probably have to end up stumping up $35 for Wygwam and use the GWcode SyntaxHighlighter addon as the EE Rich Text Editor module cannot provide this functionality. Would this be correct?

    Many thanks.

  • #2 / Dec 10, 2012 4:39pm

    jezpeters

    6 posts

    Bump.

  • #3 / Dec 10, 2012 6:45pm

    jezpeters

    6 posts

    I’ve got round this issue by embedding a GitHub Gist instead, which works very well, except that when you go to edit a previously saved channel entry, then you have to paste in the JavaScript embed code again.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases