Ticket #7452: bodyId and bodyClass (2).patch

File bodyId and bodyClass (2).patch, 1.7 KB (added by Josh S., 12 years ago)

Pass bodyId and bodyClass values in defintion

  • _source/plugins/panel/plugin.js

     
    2828        CKEDITOR.tools.extend( this,
    2929                {
    3030                        className : '',
    31                         css : []
     31                        css : [],
     32                        bodyId: '',
     33                        bodyClass: ''
    3234                });
    3335
    3436        this.id = CKEDITOR.tools.getNextId();
     
    150152                                                '<head>' +
    151153                                                        '<style>.' + className + '_container{visibility:hidden}</style>' +
    152154                                                '</head>' +
    153                                                 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' +
     155                                                '<body id="' + this.bodyId + '" ' +
     156                                                ' class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + ' '+this.bodyClass + '" style="margin:0;padding:0"' +
    154157                                                ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' +
    155158                                                // It looks strange, but for FF2, the styles must go
    156159                                                // after <body>, so it (body) becames immediatelly
    157160                                                // available. (#3031)
    158161                                                CKEDITOR.tools.buildStyleHtml( this.css ) +
    159                                         '<\/html>';
     162                                        '<\/html>';
    160163
    161164                                doc.write( data );
    162165
  • _source/plugins/floatpanel/plugin.js

     
    4141                $ : function( editor, parentElement, definition, level )
    4242                {
    4343                        definition.forceIFrame = 1;
     44                        definition.bodyId = editor.config.bodyId;
     45                        definition.bodyClass = editor.config.bodyClass;
    4446
    4547                        var doc = parentElement.getDocument(),
    4648                                panel = getPanel( editor, doc, parentElement, definition, level || 0 ),
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy