Opened 14 years ago
Last modified 12 years ago
#4566 closed Bug
IE7 - setData yields this.$.innerHTML is null or not an object — at Initial Version
Reported by: | Erik Kangas | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0.1 |
Keywords: | Pending | Cc: | Erik Kangas |
Description
- Only affects Internet Explorer v7 (have not tested v6).
- Does not affect Opera, Chrome, and FireFox (latest versions).
- Does not affect IE v8
Description:
- When using setData on an editor object in Internet Explorer, the data does get set correctly and rendered correctly, however, the error "this.$.innerHTML is null or not an object" is generated.
MS Script Debugger shoes that the error happens in the ckeditor.js on line 15 at
getHtml:function(){return this.$.innerHTML;}
If I do a JavaScript "alert" right before the setData, then there is no error. However, delaying the setData using a setTimeout does not help.
I have found a workaround. I changed the offending code to:
getHtml:function(){return (this.$) ? this.$.innerHTML : "";}
and the error goes away.