Ticket #4455: 4455_2.patch

File 4455_2.patch, 1.1 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    329329                                                        mainElement.append( iframe );
    330330                                        };
    331331
    332                                         // The script that is appended to the data being loaded. It
    333                                         // enables editing, and makes some
     332                                        // The script that launches the bootstrap logic on 'domReady', so the document
     333                                        // is fully editable even before the editing iframe is fully loaded (#4455).
    334334                                        var activationScript =
    335335                                                '<script id="cke_actscrpt" type="text/javascript">' +
    336                                                         'window.onload = function()' +
    337                                                         '{' +
    338                                                                 // Call the temporary function for the editing
    339                                                                 // boostrap.
    340                                                                 'window.parent.CKEDITOR._["contentDomReady' + editor.name + '"]( window );' +
    341                                                         '}' +
     336                                                        'window.parent.CKEDITOR._["contentDomReady' + editor.name + '"]( window );' +
    342337                                                '</script>';
    343338
    344339                                        // Editing area bootstrap code.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy