Ticket #6171: 6171_2.patch

File 6171_2.patch, 1.1 KB (added by Garry Yao, 13 years ago)
  • _source/plugins/panel/plugin.js

     
    157157                                                        '<style>.' + className + '_container{visibility:hidden}</style>' +
    158158                                                '</head>' +
    159159                                                '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' +
    160                                                 ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' +
    161                                                 // It looks strange, but for FF2, the styles must go
    162                                                 // after <body>, so it (body) becames immediatelly
    163                                                 // available. (#3031)
    164                                                 CKEDITOR.tools.buildStyleHtml( this.css ) +
     160                                                ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');">' +
     161                                                // It looks strange, but for FF2, the styles must go
     162                                                // before closing <body> to make it(body) visible (#3031), but go after body cause host page scrolling in FF3 (#6171).
     163                                                CKEDITOR.tools.buildStyleHtml( this.css ) +
     164                                                '</body>' +
    165165                                        '<\/html>' );
    166166                                doc.$.close();
    167167
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy