I responded to the a message with the quote below. In that thread someone mentioned a solution but didn't answer to the request to mention the solution so it is still a mistery.
I have the same problem and if I can't getr a solution for that the editor is of no use or at least limited use.
Even the build-in styles won't work....
I tried to senda PM to the responders, but got no answer until now.
Is there anybody who can give me the right solution?
value of style attribute is removed
I am encountering a problem with style attributes. If I create and edit text in the FCKeditor and apply some styles to it by selecting the text and choosing a font from the Font pulldown menu, the HTML that is generated is something like the following:
<p><span style="font-family: Tahoma;"><strong>More test text</strong></span></p>
I save the text to the database, and then open the editor again, passing in the string above as the text to start with. However, when the editor displays the text, the style attribute values have been removed. This is what is displayed in the editor when I look at the source:
<p><span style=""><strong>More test text</strong></span></p>
This is happening with every style that is applied via the span tag.
Here's another example:
Created by FCKeditor when I select text and apply a Font and a Size to the font:
<p><span style="font-size: large;"><span style="font-family: Comic Sans MS;">Test Text Style</span></span></p>
Source of text in FCKeditor when I pass the above string back into FCKeditor:
<p><span style=""><span sans="" comic="" style="">Test Text Style</span></span></p>
Re: Style attributes are stripped from text or mashed up
Am I the only one in the world who has this problem?
How is it possible that I am the only one who does get CKeditor to work.
I like it because of the extended possibilities for text formatting, but most of the format functions don't work.
I hav a simple implementation in a php-file like
and rewrite the text in sb_update.php with
Even when I start with a new install the formatting is removed or even corrupted. So it makes the editor a crappy and unusable editor, only good for formatting with <hx> <b> and <i>.
I already made a style in the form of <h6> in order to get this specific format in the text.
So please please.... Can anybody help with this issue.
Re: Style attributes are stripped from text or mashed up
I installed the program in a web on another server and guess what: it worked!
So what I have to do now is to find out what the differences between the 2 servers (different hosting providers) are.
So any hint is welcome!
Re: Style attributes are stripped from text or mashed up
Problem solved!!
It was caused by an option called "Magic Quotes". Turning off this option in de php.ini saved my day....