Opened 15 years ago
Closed 15 years ago
#5369 closed Bug (invalid)
editor addCss only works on first pass
Reported by: | Robert | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: |
Description
In order to recreate the bug I used the divreplace example. After the line to replace the dive I add "editor.addCss("body{background-color:red;}");"
On the first div the css is added. On the subsequent editors on the other divs it no longer works.
The bug was produced in Firefox 3.5.8 and IE 6, 7, & 8
The docs already state that you must use it before the editor is loaded, it has no effect after that. The first time works before the load takes longer and so the line is executed just in time.
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#addCss