Opened 14 years ago

Closed 14 years ago

#7107 closed Bug (invalid)

resetDirty after setData causes JavaScript error in IE8

Reported by: dpckuser Owned by:
Priority: Normal Milestone:
Component: General Version: 3.5
Keywords: Cc:

Description

In IE8 if I call resetDirty directly after setData, a JavaScript error is generated. The error text says: Error: 'this.$.innerHTML' is null or not an object.

Steps: 1) Load the attached test page in IE8. (This simply calls "setData" immediately followed by "resetDirty".) 2) Press the "setData and resetDirty" button.

Browser and OS: IE 8.0.6001.18702 Update Versions: 0 Windows XP Professional SP3

Screenshot(s): Attached

Test case file: Attached

Other: I have found that this happens when getFrameDocument in core/dom/element.js returns when "$.contentWindow.document.body" is still undefined.

Attachments (2)

CKEditorIssue1.jpg (57.6 KB) - added by dpckuser 14 years ago.
Screenshot of resetDirty issue
test.htm (789 bytes) - added by dpckuser 14 years ago.
Sample HTML file producing the resetDirty issue

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by dpckuser

Attachment: CKEditorIssue1.jpg added

Screenshot of resetDirty issue

Changed 14 years ago by dpckuser

Attachment: test.htm added

Sample HTML file producing the resetDirty issue

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

Resolution: invalid
Status: newclosed

setData is an asynchronous operation and the editor might not be ready right after calling it. Check the docs http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setData

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