Opened 16 years ago
Closed 16 years ago
#3674 closed Bug (invalid)
[FF3] resetDirty() not working after initial load
| Reported by: | Damian | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.0 |
| Component: | General | Version: | |
| Keywords: | IBM | Cc: |
Description
When calling resetDirty() after setData() the editor's checkDirty() function returns true. The expected result is that the dirty flag is reset after setting data.
FF3 is the only browser this happens in.
Example call:
editor = CKEDITOR.appendTo( 'div1',
{
on :
{
instanceReady : function( ev )
{
ev.editor.setData( '<div><h1>This is some sample data</h1></div>' );
ev.editor.resetDirty();
}
}
});
Test file attached.
Attachments (2)
Change History (3)
Changed 16 years ago by
| Attachment: | TestDirty.html added |
|---|
comment:1 Changed 16 years ago by
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
Sorry for the inconvenience but CKEDITOR.editor::setData with 'wysiwyg' mode is an asynchronous call, so it's unable to continue processing immediately after the call, a workaround is attached.

Test file