Hi, I am facing a strange issue (ckeditor 4.2). Whenever I set some html to the editor, for instance
var value = "<span style='font-family: Arial;'>Some text</span>';
editor.setData(value, function () {
//some callback code
});
If I then look into the developer tools the resulting html of the editor is
<p>Some text</p>
and all the formatting info (as well as the 'span' element) are gone. Can anyone help me figure that one out?
Update: I have upgraded to 4.3 but the problem remains. On the demo pages downloadable with the whole package, and precisely in ckeditor/samples/jquery.html, if I enter
<span style="font-family: Times new Roman">my text</span>
this is displayed correctly (even though in my app, running the same example, this is still not the case...). Instead if I enter
<span style="font-weight: bold; font-family: Times new Roman">my text</span>
the <span> gets translated into a <strong> thereby losing font-family information.
I have also tried setting the value with $('#editorId').val(htmlValue) but I suppose the 2 calls are identical since the result is the same.
Any help is much appreciated
thanx

Read about the Advanced
Read about the Advanced Content Filter.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Cool works fine. Sorry I
Cool works fine. Sorry I missed that from the docs.
Thanx for your help