Hello,
I am having a problem. Here is the code i am inserting into the textarea.
<div style="background-repeat: no-repeat; background-image: url(image.jpg); width:200px; height:300px; color: #FFF; text-align: left;"> Hello </div>
I enter ckeditor and swith on html code. I can see :
<div style="background-repeat: no-repeat; background-image: url("image.jpg"); width:200px; height:300px; color: #FFF; text-align: left;"> Hello </div>
The " text is added into background-image. This appens only in FF5 , IE9. Chrome work good.
It happens only with config.fullPage = true;
It i choose config.fullPage = false; if is perfect with all browser but I need fullpame on.
How can i fix it ?
thank you
I am having a problem. Here is the code i am inserting into the textarea.
<div style="background-repeat: no-repeat; background-image: url(image.jpg); width:200px; height:300px; color: #FFF; text-align: left;"> Hello </div>
I enter ckeditor and swith on html code. I can see :
<div style="background-repeat: no-repeat; background-image: url("image.jpg"); width:200px; height:300px; color: #FFF; text-align: left;"> Hello </div>
The " text is added into background-image. This appens only in FF5 , IE9. Chrome work good.
It happens only with config.fullPage = true;
It i choose config.fullPage = false; if is perfect with all browser but I need fullpame on.
How can i fix it ?
thank you
Re: inline css &quot: ?
I have refreshed an old ticked - https://dev.ckeditor.com/ticket/7617.
@alfredolo could you tell me what problem does this change from ' to " cause in your application? From what I have checked in clean CKEditor version background-image is always displayed. Is it something when you save and then redisplay the code?
Re: inline css &quot: ?
I fixed it with something like this :
echo '<textarea name="EditorHtml" id="EditorHtml" >'.htmlspecialchars( my html here );.'</textarea>';
and id work good now even whit "
Re: inline css &quot: ?
What you were having was nested text area problem (also described here - viewtopic.php?t=17605)
htmlspecialchars is the way to fix it.