Ticket #5181: 5181.patch

File 5181.patch, 1.3 KB (added by Frederico Caldeira Knabben, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    342342                                        // is fully editable even before the editing iframe is fully loaded (#4455).
    343343                                        var activationScript =
    344344                                                '<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 );' +
    346346                                                '</script>';
    347347
    348348                                        // Editing area bootstrap code.
    349                                         var contentDomReady = function( domWindow )
     349                                        function contentDomReady( domWindow )
    350350                                        {
    351351                                                if ( frameLoaded )
    352352                                                        return;
     
    360360                                                var script = domDocument.getElementById( "cke_actscrpt" );
    361361                                                script.parentNode.removeChild( script );
    362362
    363                                                 delete CKEDITOR._[ 'contentDomReady' + editor.name ];
    364 
    365363                                                body.spellcheck = !editor.config.disableNativeSpellChecker;
    366364
    367365                                                if ( CKEDITOR.env.ie )
     
    677675
    678676                                                                data += activationScript;
    679677
    680                                                                 CKEDITOR._[ 'contentDomReady' + editor.name ] = contentDomReady;
    681678                                                                createIFrame( data );
    682679                                                        },
    683680
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy