Ticket #7452: bodyId and bodyClass.patch
File bodyId and bodyClass.patch, 3.4 KB (added by , 14 years ago) |
---|
-
_source/plugins/richcombo/plugin.js
224 224 panelBlockDefinition = this._.panelDefinition.block, 225 225 panelParentElement = panelDefinition.parent || CKEDITOR.document.getBody(), 226 226 panel = new CKEDITOR.ui.floatPanel( editor, panelParentElement, panelDefinition ), 227 list = panel.addListBlock( this.id, panelBlockDefinition ),227 list = panel.addListBlock( this.id, panelBlockDefinition, editor ), 228 228 me = this; 229 229 230 230 panel.onShow = function() -
_source/plugins/panel/plugin.js
122 122 return id; 123 123 }, 124 124 125 getHolderElement : function( )125 getHolderElement : function(editor) 126 126 { 127 127 var holder = this._.holder; 128 128 … … 144 144 this.onLoad(); 145 145 }, this ) ); 146 146 147 //get the body_id and body_class 148 var body_class = 'cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass; 149 var body_id = ''; 150 if( editor ){ 151 var config = editor.config; 152 body_class += ( config.bodyClass ? ' ' + config.bodyClass : '' ); 153 body_id = ( config.bodyId ? ' id="' + config.bodyId + '"' : '' ); 154 } 155 147 156 var data = 148 157 '<!DOCTYPE html>' + 149 158 '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' + 150 159 '<head>' + 151 160 '<style>.' + className + '_container{visibility:hidden}</style>' + 152 161 '</head>' + 153 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' + 162 '<body' + body_id + 163 ' class="' + body_class + '" style="margin:0;padding:0"' + 154 164 ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');"></body>' + 155 165 // It looks strange, but for FF2, the styles must go 156 166 // after <body>, so it (body) becames immediatelly -
_source/plugins/listblock/plugin.js
9 9 10 10 onLoad : function() 11 11 { 12 CKEDITOR.ui.panel.prototype.addListBlock = function( name, definition )12 CKEDITOR.ui.panel.prototype.addListBlock = function( name, definition, editor ) 13 13 { 14 return this.addBlock( name, new CKEDITOR.ui.listBlock( this.getHolderElement( ), definition ) );14 return this.addBlock( name, new CKEDITOR.ui.listBlock( this.getHolderElement(editor), definition ) ); 15 15 }; 16 16 17 17 CKEDITOR.ui.listBlock = CKEDITOR.tools.createClass( -
_source/plugins/floatpanel/plugin.js
72 72 return this._.panel.addBlock( name, block ); 73 73 }, 74 74 75 addListBlock : function( name, multiSelect )75 addListBlock : function( name, multiSelect, editor ) 76 76 { 77 return this._.panel.addListBlock( name, multiSelect );77 return this._.panel.addListBlock( name, multiSelect, editor ); 78 78 }, 79 79 80 80 getBlock : function( name )