views:

276

answers:

1

Hi everybody,

I've just installed CKEditor and call it with JS tag. When I save the text, all the font attributes (indentation, space, size, decoration,etc.) are correctly saved .

The problem is that when I want to edit the data, with CKEditor, all these attributes are well loaded but the COLOR even if, in the example below, it's set to "BLUE"!

Which is very bizarre because when I can see the color style property in my database:

<h3 style=\"\\&quot;color:blue\\&quot;\">
<strong>aulne </strong>kjhqsdf <span style=\"\\&quot;color:#008000;\\&quot;\"><u>kjhkjsdfh </u></span>j&#39;<span style=\"\\&quot;\\\\&quot;\\\\&quot;\\&quot;\"><em>esp&egrave;re </em></span><span style=\"\\&quot;\\\\&quot;\\\\&quot;\\&quot;\">bien<sup>2</sup></span></h3>

I found this old bug post http://dev.fckeditor.net/ticket/116 where no solution is found.

Thank very much, regards.

A: 

Hi,

I found the problem: on the php side, before inserting, I was using the "addslash" function I forgot to remove.

Thanks again.

Zakaria