Hi!
I use the "styles" drop-down box in the editor to format text. The expected result of this would be:
<span class="normal">MY TEXT</span>
However, my span is altered and looks like this:
<span style="font-family: Tahoma; font-style: italic; font-variant: normal; font-weight: bold; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: blue;" class="normal">MY TEXT</span>
The above styles are apparently taken from my CSS file "fck_editorarea.css" but I only want class="normal" to be applied, not the style="bla bla bla"
This happens in both Firefox and Internet Explorer.
Kind regards, Mikkel
I use the "styles" drop-down box in the editor to format text. The expected result of this would be:
<span class="normal">MY TEXT</span>
However, my span is altered and looks like this:
<span style="font-family: Tahoma; font-style: italic; font-variant: normal; font-weight: bold; font-size: 10px; line-height: normal; font-size-adjust: none; font-stretch: normal; color: blue;" class="normal">MY TEXT</span>
The above styles are apparently taken from my CSS file "fck_editorarea.css" but I only want class="normal" to be applied, not the style="bla bla bla"
This happens in both Firefox and Internet Explorer.
Kind regards, Mikkel
RE: Remove styles when using class
I had the same problem, and this fixed the problem.
Hope this helps.
(Solved) RE: Remove styles when using class
The problem occured because i dynamically rewrite the XML file when a user submits a class(in my CMS)
Thanks for your help.