Here's a really simple, minimal example of a CKEditor page, using a fresh download of 4.3, and it works fine:
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript" src="/ckeditor/ckeditor.js"></script> <textarea id="html_header" name="html_header" rows="8" cols="60"><div id="header" style="background-color: purple; width: 100%; height:100px;"><img alt="email header" height="63" src="http://www.example.net/content/images/header.gif" style="border: 0px;" width="600"></div></textarea> <script type="text/javascript"> CKEDITOR.replace('html_header', { "baseHref":"http://example.com/", "toolbarStartupExpanded":true, "customConfig":false }); </script> </body> </html>
Now add 'text-align: center;' to the inline style in the textarea content so it becomes this:
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <script type="text/javascript" src="/ckeditor/ckeditor.js"></script> <textarea id="html_header" name="html_header" rows="8" cols="60"><div id="header" style="text-align: center;background-color: purple; width: 100%; height:100px;"><img alt="email header" height="63" src="http://www.example.net/content/images/header.gif" style="border: 0px;" width="600"></div></textarea> <script type="text/javascript"> CKEDITOR.replace('html_header', { "baseHref":"http://example.com/", "toolbarStartupExpanded":true, "customConfig":false }); </script> </body> </html>
CKEditor now fails to run on load, giving this error, and leaving the editor unresponsive:
[Error] TypeError: 'null' is not an object (evaluating 'a.previous=this.previous') replaceWith (ckeditor.js, line 249) upcast (ckeditor.js, line 1016) (anonymous function) (ckeditor.js, line 979) forEach (ckeditor.js, line 264) forEach (ckeditor.js, line 264) (anonymous function) (ckeditor.js, line 978) j (ckeditor.js, line 10) (anonymous function) (ckeditor.js, line 12) fire (ckeditor.js, line 13) toHtml (ckeditor.js, line 285) setData (ckeditor.js, line 763) (anonymous function) (ckeditor.js, line 327) j (ckeditor.js, line 10) (anonymous function) (ckeditor.js, line 12) fire (ckeditor.js, line 13) setData (ckeditor.js, line 239) b (ckeditor.js, line 759) (anonymous function) (ckeditor.js, line 761) setMode (ckeditor.js, line 313) (anonymous function) (ckeditor.js, line 308) j (ckeditor.js, line 10) (anonymous function) (ckeditor.js, line 12) fire (ckeditor.js, line 13) fireOnce (ckeditor.js, line 12) fireOnce (ckeditor.js, line 13) (anonymous function) (ckeditor.js, line 234) l (ckeditor.js, line 214) u (ckeditor.js, line 214) s (ckeditor.js, line 214) (anonymous function) (ckeditor.js, line 215)
If I take out the text-align style, it works again. I've no idea why it should break like that, I'm assuming it's a bug.
I tried to attach my build-config.js file, but the forum won't let me.
I created a sample with your
I created a sample with your config and your HTML and it works fine in 4.3 and 4.3.1. Perhaps build config is important. BTW. If you think that you found a bug, then you should report it on http://dev.ckeditor.com.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Done
Done.
Thanks. We'll check it.
Thanks. We'll check it.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+