Opened 11 years ago
Closed 11 years ago
#10980 closed Bug (duplicate)
IE9: 'resetDirty' function throws exception when called after 'setData' function
Reported by: | IBM_RQM | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.6.4 |
Keywords: | Cc: |
Description
Our usage -
- Create new instance of CKEditor (editor).
- On "instanceReady" event, calling editor.setData(data, setDataCallback);
- In 'setDataCallback' event, calling following functions -
editor.updateElement(); editor.resetDirty(); editor.resetUndo(); editor.focus();
Actual result: editor.resetDirty() function throwing exception - Uanble to get property "innerHTML" of undefined or null reference
In my initial investigation, it looks like the editor 'contentDom' is not fully ready.
This problem can be reproduced in in all versions of IE.
Furthermore this isn't the only situation in which this happens thus I'm closing this issue as duplicate of #10501 and moving this TC there.
NOTE: Putting resetDirty in setTimeout method can be used to work around this issue.