Ticket #5181: 5181_2.patch
File 5181_2.patch, 1.7 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
329 329 330 330 // The script that launches the bootstrap logic on 'domReady', so the document 331 331 // is fully editable even before the editing iframe is fully loaded (#4455). 332 var contentDomReadyHandler = CKEDITOR.tools.addFunction( contentDomReady ); 332 333 var activationScript = 333 334 '<script id="cke_actscrpt" type="text/javascript" cke_temp="1">' + 334 335 ( isCustomDomain ? ( 'document.domain="' + document.domain + '";' ) : '' ) + 335 ' parent.CKEDITOR._["contentDomReady' + editor.name + '"](window );' +336 'window.parent.CKEDITOR.tools.callFunction( ' + contentDomReadyHandler + ', window );' + 336 337 '</script>'; 337 338 338 339 // Editing area bootstrap code. 339 var contentDomReady = function( domWindow )340 function contentDomReady( domWindow ) 340 341 { 341 342 if ( !frameLoaded ) 342 343 return; … … 351 352 var script = domDocument.getElementById( "cke_actscrpt" ); 352 353 script.parentNode.removeChild( script ); 353 354 354 delete CKEDITOR._[ 'contentDomReady' + editor.name ];355 CKEDITOR.tools.removeFunction( contentDomReadyHandler ); 355 356 356 357 body.spellcheck = !editor.config.disableNativeSpellChecker; 357 358 … … 671 672 672 673 data += activationScript; 673 674 674 CKEDITOR._[ 'contentDomReady' + editor.name ] = contentDomReady;675 675 676 676 // The iframe is recreated on each call of setData, so we need to clear DOM objects 677 677 this.onDispose();