Ticket #4058: 4058.patch
File 4058.patch, 2.0 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
216 216 iframe, 217 217 isLoadingData, 218 218 isPendingFocus, 219 blockReady = false, 219 220 fireMode; 220 221 221 222 // Support for custom document.domain in IE. … … 262 263 263 264 if ( CKEDITOR.env.gecko ) 264 265 { 266 // Make sure it will be loaded properly ( #4058 ). 267 var onIframeLoad = function( data ) 268 { 269 iframe.removeListener( 'load', onIframeLoad ); 270 if ( !blockReady ) 271 contentDomReady( data.sender.$.contentWindow ); 272 }; 273 iframe.on( 'load', onIframeLoad ); 274 265 275 // Accessibility attributes for Firefox. 266 276 mainElement.setAttributes( 267 277 { … … 305 315 '<script id="cke_actscrpt" type="text/javascript">' + 306 316 'window.onload = function()' + 307 317 '{' + 308 // Remove this script from the DOM.309 'var s = document.getElementById( "cke_actscrpt" );' +310 's.parentNode.removeChild( s );' +311 312 318 // Call the temporary function for the editing 313 319 // boostrap. 314 320 'window.parent.CKEDITOR._["contentDomReady' + editor.name + '"]( window );' + … … 318 324 // Editing area bootstrap code. 319 325 var contentDomReady = function( domWindow ) 320 326 { 321 delete CKEDITOR._[ 'contentDomReady' + editor.name ];327 blockReady = true; 322 328 323 329 var domDocument = domWindow.document, 324 330 body = domDocument.body; 325 331 332 // Remove this script from the DOM. 333 var script = domDocument.getElementById( "cke_actscrpt" ); 334 script.parentNode.removeChild( script ); 335 336 delete CKEDITOR._[ 'contentDomReady' + editor.name ]; 337 326 338 body.spellcheck = !editor.config.disableNativeSpellChecker; 327 339 328 340 if ( CKEDITOR.env.ie )