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)

TestDirty.html (757 bytes) - added by Damian 16 years ago.
Test file
TestDirty_2.html (1015 bytes) - added by Garry Yao 16 years ago.
Possible workaround

Download all attachments as: .zip

Change History (3)

Changed 16 years ago by Damian

Attachment: TestDirty.html added

Test file

comment:1 Changed 16 years ago by Garry Yao

Resolution: invalid
Status: newclosed

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.

Changed 16 years ago by Garry Yao

Attachment: TestDirty_2.html added

Possible workaround

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy