joomlajoomla3.3joomla-articlejoomla-content-editor

How to retain style tags saved in the contents in JCE?


On my Joomla 3.3.0 site, I'm trying to write custom css rules in my article editor (JCE 2.3.4.4). I have disabled the 'html filtering' and now this is possible.

So now I get the desired output when I write something like:

<p>test</p>
<style>#t123{color:red}</style>
<div id="t123">red font</div>

However when I try to edit the article again, the style tag is missing. I can only see:

<p>test</p>
<div id="t123">red font</div>

How can I configure the editor to also show the style tag when editing?


Solution

  • The answer to my question is to enable the Allow CSS option in Components > JCE Editor > Editor Profiles > Editor Parameters > Advanced

    Thanks to @Apurv for giving me a hint on where to look for