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

677 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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

1
On

There are two places where you need to disable filtering. One is the Global Configuration -> Text Filtering and another is JCE Editor Profiles -> Plug-in Parameters -> Media Support.