Opened 9 years ago

Closed 9 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

Change History (1)

comment:1 Changed 9 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy