Opened 16 years ago
Last modified 13 years ago
#4566 closed Bug
IE7 - setData yields this.$.innerHTML is null or not an object — at Version 2
Reported by: | Erik Kangas | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0.1 |
Keywords: | Pending | Cc: | Erik Kangas |
Description (last modified by )
- 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.
Change History (2)
comment:1 Changed 16 years ago by
Keywords: | Pending added |
---|
comment:2 Changed 16 years ago by
Description: | modified (diff) |
---|
Works for me, could you provide a reduced example page?