Ticket #5181: 5181.patch
File 5181.patch, 1.3 KB (added by , 14 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
342 342 // is fully editable even before the editing iframe is fully loaded (#4455). 343 343 var activationScript = 344 344 '<script id="cke_actscrpt" type="text/javascript" cke_temp="1">' + 345 'window.parent.CKEDITOR. _["contentDomReady' + editor.name + '"](window );' +345 'window.parent.CKEDITOR.tools.callFunction( ' + CKEDITOR.tools.addFunction( contentDomReady ) + ', window );' + 346 346 '</script>'; 347 347 348 348 // Editing area bootstrap code. 349 var contentDomReady = function( domWindow )349 function contentDomReady( domWindow ) 350 350 { 351 351 if ( frameLoaded ) 352 352 return; … … 360 360 var script = domDocument.getElementById( "cke_actscrpt" ); 361 361 script.parentNode.removeChild( script ); 362 362 363 delete CKEDITOR._[ 'contentDomReady' + editor.name ];364 365 363 body.spellcheck = !editor.config.disableNativeSpellChecker; 366 364 367 365 if ( CKEDITOR.env.ie ) … … 677 675 678 676 data += activationScript; 679 677 680 CKEDITOR._[ 'contentDomReady' + editor.name ] = contentDomReady;681 678 createIFrame( data ); 682 679 }, 683 680