Ticket #7153: 7153.patch

File 7153.patch, 840 bytes (added by Frederico Caldeira Knabben, 8 years ago)
  • ckeditor_source.js

     
    2020        CKEDITOR._autoLoad = 'core/ckeditor';
    2121
    2222        // Include the loader script.
    23         document.write(
    24                 '<script type="text/javascript" src="' + CKEDITOR.getUrl( '_source/core/loader.js' ) + '"></script>' );
     23        if ( document.body && (!document.readyState || document.readyState == 'complete') )
     24        {
     25                var script = document.createElement( 'script' );
     26                script.type = 'text/javascript';
     27                script.src = CKEDITOR.getUrl( '_source/core/loader.js' );
     28                document.body.appendChild( script );
     29        }
     30        else
     31        {
     32                document.write(
     33                        '<script type="text/javascript" src="' + CKEDITOR.getUrl( '_source/core/loader.js' ) + '"></script>' );
     34        }
    2535}
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy