Opened 16 years ago
Last modified 16 years ago
#1654 closed Bug
E.contentWindow.document.body.innerHTML does not exist — at Initial Version
Reported by: | Jörg Roßdeutscher | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | FCKeditor 2.6 |
Component: | General | Version: | FCKeditor 2.5 |
Keywords: | Review+ | Cc: |
Description
Line 48 in fckeditor_gecko.js gives me an error in Firefox with FCKeditor release 2.5.
I tracked it down to:
if (E.contentWindow ) E.contentWindow.document.body.innerHTML=;
Even I don´t know exactly what´s happening here the "style" seems not to be clean for me: Checking if an object exist and then accessing two levels deeper than checked.
I changed to:
if (E.contentWindow && E.contentWindow.document && E.contentWindow.document.body ) E.contentWindow.document.body.innerHTML=;
and now everything works as expected.