Index: _whatsnew.html
===================================================================
--- _whatsnew.html (revision 1691)
+++ _whatsnew.html (working copy)
@@ -65,6 +65,9 @@
[#1985]
[#1989]
Fixed XHTML source formatting errors in non-IE browsers.
+
[#1055] Added logic
+ to override JavaScript errors occuring inside the editing frame due to user added
+ JavaScript code.
Version 2.6 Beta 1
Index: editor/_source/classes/fckeditingarea.js
===================================================================
--- editor/_source/classes/fckeditingarea.js (revision 1688)
+++ editor/_source/classes/fckeditingarea.js (working copy)
@@ -92,12 +92,16 @@
// Create the editing area IFRAME.
var oIFrame = this.IFrame = oTargetDocument.createElement( 'iframe' ) ;
+ // IE: Avoid JavaScript errors thrown by the editing are source (like tags events).
+ // See #1055.
+ var sOverrideError = '' ;
+
oIFrame.frameBorder = 0 ;
oIFrame.width = oIFrame.height = '100%' ;
if ( FCK_IS_CUSTOM_DOMAIN && FCKBrowserInfo.IsIE )
{
- window._FCKHtmlToLoad = html ;
+ window._FCKHtmlToLoad = sOverrideError + html ;
oIFrame.src = 'javascript:void( (function(){' +
'document.open() ;' +
'document.domain="' + document.domain + '" ;' +
@@ -129,7 +133,7 @@
var oDoc = this.Window.document ;
oDoc.open() ;
- oDoc.write( html ) ;
+ oDoc.write( sOverrideError + html ) ;
oDoc.close() ;
}