Ticket #3879: 3879_4.patch
File 3879_4.patch, 3.3 KB (added by , 14 years ago) |
---|
-
CHANGES.html
117 117 <li><a href="http://dev.fckeditor.net/ticket/3887">#3887</a> : Fixed an issue in which the create 118 118 list command may leak outside of a selected table cell and into the rest of document.</li> 119 119 <li><a href="http://dev.fckeditor.net/ticket/3916">#3916</a> : Fixed maximize does not enlarge editor width when width is set.</li> 120 <li><a href="http://dev.fckeditor.net/ticket/3879">#3879</a> : [webkit] Color button panel had incorrect size on first open.</li> 120 121 </ul> 121 122 <h3> 122 123 CKEditor 3.0 RC</h3> -
_source/plugins/panel/plugin.js
133 133 className = parentDiv.getParent().getAttribute( 'class' ), 134 134 langCode = parentDiv.getParent().getAttribute( 'lang' ), 135 135 doc = iframe.getFrameDocument(); 136 137 136 // Initialize the IFRAME document body. 138 137 doc.$.open(); 139 138 … … 141 140 if ( CKEDITOR.env.isCustomDomain() ) 142 141 doc.$.domain = document.domain; 143 142 143 var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev ) 144 { 145 this.isLoaded = true; 146 if ( this.onLoad ) 147 this.onLoad(); 148 }, this ) ); 149 144 150 doc.$.write( 145 151 '<!DOCTYPE html>' + 146 152 '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' + 147 153 '<head>' + 148 154 '<style>.' + className + '_container{visibility:hidden}</style>' + 149 155 '</head>' + 150 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0">' + 156 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' + 157 ' onload="( window.CKEDITOR || window.parent.CKEDITOR ).tools.callFunction(' + onLoad + ');">' + 151 158 '</body>' + 152 159 // It looks strange, but for FF2, the styles must go 153 160 // after <body>, so it (body) becames immediatelly … … 161 168 // Register the CKEDITOR global. 162 169 win.$.CKEDITOR = CKEDITOR; 163 170 164 win.on( 'load', function( ev )165 {166 this.isLoaded = true;167 if ( this.onLoad )168 this.onLoad();169 },170 this);171 172 171 doc.on( 'keydown', function( evt ) 173 172 { 174 173 var keystroke = evt.data.getKeystroke(); -
_source/plugins/floatpanel/plugin.js
211 211 panel._.currentBlock.element.setStyle( 'display', 'none' ).removeStyle( 'display' ); 212 212 } 213 213 214 if ( !CKEDITOR.env.gecko || panel.isLoaded ) 215 { 216 // IE7 needs some time (setting the delay to 0ms won't work) to refresh 217 // the scrollHeight. (#3174) 218 if ( CKEDITOR.env.ie && CKEDITOR.env.version >= 7 ) 219 setTimeout( setHeight, 50 ); 220 else 221 setHeight(); 222 } 214 if ( panel.isLoaded ) 215 setHeight(); 223 216 else 224 217 panel.onLoad = setHeight; 225 218 }