Background image inline style problem
<div style="width:120px; height:40px; background:no-repeat url('http://static.reddit.com/reddit.com.header.png');">Testing</div><div style="width: 120px; height: 40px; background: url("http://static.reddit.com/reddit.com.header.png") no-repeat scroll 0% 0% transparent;">Testing</div>
<div http:="" no-repeat="" reddit.com.header.png="" scroll="" static.reddit.com="" style="width: 120px; height: 40px;">Testing</div>
<div http:="" no-repeat="" reddit.com.header.png="" scroll="" static.reddit.com="" style="width: 120px; height: 40px;">Testing</div>
Re: Background image inline style problem
Re: Background image inline style problem
Re: Background image inline style problem
Re: Background image inline style problem
Re: Background image inline style problem
<div style="width: 120px; height: 40px; background: url('http://static.reddit.com/reddit.com.header.png') no-repeat scroll 0% 0% transparent;">Testing</div>Re: Background image inline style problem
Look at the html of the page where CKEditor is used, check that it's valid HTML and it's indeed what you need.
How to know if it's a problem in CKEditor?:
Go to source mode, paste your content, switch back to design, and back to code.
If you get the same code that you pasted (minus spacing and new lines) then the javascript is working correctly and you have to look at the php side, check what is sent to CKEditor.
Re: Background image inline style problem
<div style="width: 120px; height: 40px; background: url('http://static.reddit.com/reddit.com.header.png') no-repeat scroll 0% 0% transparent;"> Testing</div><html> <head><script type="text/javascript" src="http://mysite/ckeditor/ckeditor.js"></script> </head> <body> <textarea name="pagecontent"><div style="width: 120px; height: 40px; background: url("http://static.reddit.com/reddit.com.header.png") no-repeat scroll 0% 0% transparent;"> Testing</div> </textarea> <script type="text/javascript"> <script type="text/javascript"> CKEDITOR.replace( 'pagecontent', { uiColor: '#E4E4E4', height : 600 }); </script> </body></html>Re: Background image inline style problem
That strikes me as odd. In your original post, you said that firefox was taking the quote character in the url and changing it to "e;. How can the same thing be happening when you remove the quotes from the url?
And are you suggesting that even when you don't put quotes in the url, quotes are appearing in the database?
Re: Background image inline style problem
Re: Background image inline style problem
Re: Background image inline style problem
This fixes it but does not make much sense to me as the code would only get all garbled if there was a background image in the code, everything else has been working fine and has been heavily used for about a year or so.
Its only when we tried to put in a background image that we had problems..
Re: Background image inline style problem
Re: Background image inline style problem
http://validator.w3.org/check?uri=http% ... ne&group=0
Re: Background image inline style problem
Re: Background image inline style problem
How do you expect that CKEditor or any other system can handle that properly?
Just look at it: First quote starts the style attribute, the second one closes the style (no, it's not part of the style because if it was it should be encoded as ", but you didn't encode the input html), after that there's some garbage that it's parsed as some strange attributes.
Re: Background image inline style problem
<div style="width:120px; height:40px; background:no-repeat url('http://static.reddit.com/reddit.com.header.png');">Testing</div>