Ticket #7452: bodyId and bodyClass (2).patch
File bodyId and bodyClass (2).patch, 1.7 KB (added by , 12 years ago) |
---|
-
_source/plugins/panel/plugin.js
28 28 CKEDITOR.tools.extend( this, 29 29 { 30 30 className : '', 31 css : [] 31 css : [], 32 bodyId: '', 33 bodyClass: '' 32 34 }); 33 35 34 36 this.id = CKEDITOR.tools.getNextId(); … … 150 152 '<head>' + 151 153 '<style>.' + className + '_container{visibility:hidden}</style>' + 152 154 '</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"' + 154 157 ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' + 155 158 // It looks strange, but for FF2, the styles must go 156 159 // after <body>, so it (body) becames immediatelly 157 160 // available. (#3031) 158 161 CKEDITOR.tools.buildStyleHtml( this.css ) + 159 '<\/html>'; 162 '<\/html>'; 160 163 161 164 doc.write( data ); 162 165 -
_source/plugins/floatpanel/plugin.js
41 41 $ : function( editor, parentElement, definition, level ) 42 42 { 43 43 definition.forceIFrame = 1; 44 definition.bodyId = editor.config.bodyId; 45 definition.bodyClass = editor.config.bodyClass; 44 46 45 47 var doc = parentElement.getDocument(), 46 48 panel = getPanel( editor, doc, parentElement, definition, level || 0 ),