Skip to content

Commit

Permalink
Supress IE11 undefined window.parent.CKEDITOR
Browse files Browse the repository at this point in the history
  • Loading branch information
sculpt0r committed Apr 26, 2021
1 parent dfb49fc commit dcb8b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/wysiwygarea/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@
'var wasLoaded=0;' + // It must be always set to 0 as it remains as a window property.
'function onload(){' +
'if(!wasLoaded)' + // FF3.6 calls onload twice when editor.setData. Stop that.
'window.parent.CKEDITOR.tools.callFunction(' + this._.frameLoadedHandler + ',window);' +
'window.parent.CKEDITOR && window.parent.CKEDITOR.tools.callFunction(' + this._.frameLoadedHandler + ',window);' +
'wasLoaded=1;' +
'}' +
( CKEDITOR.env.ie ? 'onload();' : 'document.addEventListener("DOMContentLoaded", onload, false );' ) +
Expand Down

0 comments on commit dcb8b0c

Please sign in to comment.