Ticket #3879: 3879_2.patch
File 3879_2.patch, 3.4 KB (added by , 14 years ago) |
---|
-
CHANGES.html
93 93 <li><a href="http://dev.fckeditor.net/ticket/3639">#3639</a> : Button size was inconsistent.</li> 94 94 <li><a href="http://dev.fckeditor.net/ticket/3874">#3874</a> : Paste as plain text in Safari loosing lines.</li> 95 95 <li><a href="http://dev.fckeditor.net/ticket/3849">#3849</a> : Fixed IE8 crashes when applying lists and indenting.</li> 96 <li><a href="http://dev.fckeditor.net/ticket/3879">#3879</a> : Color button panel was incorrect size on first open in webkit.</li> 96 97 </ul> 97 98 <h3> 98 99 CKEditor 3.0 RC</h3> -
_source/plugins/panel/plugin.js
134 134 langCode = parentDiv.getParent().getAttribute( 'lang' ), 135 135 doc = iframe.getFrameDocument(); 136 136 137 var win = doc.getWindow(); 138 139 // Register the CKEDITOR global. 140 win.$.CKEDITOR = CKEDITOR; 141 137 142 // Initialize the IFRAME document body. 138 143 doc.$.open(); 139 144 … … 141 146 if ( CKEDITOR.env.isCustomDomain() ) 142 147 doc.$.domain = document.domain; 143 148 149 var onLoad = CKEDITOR.tools.addFunction( CKEDITOR.tools.bind( function( ev ) 150 { 151 this.isLoaded = true; 152 if ( this.onLoad ) 153 this.onLoad(); 154 }, this ) ); 155 144 156 doc.$.write( 145 157 '<!DOCTYPE html>' + 146 158 '<html dir="' + dir + '" class="' + className + '_container" lang="' + langCode + '">' + 147 159 '<head>' + 148 160 '<style>.' + className + '_container{visibility:hidden}</style>' + 149 161 '</head>' + 150 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0">' + 162 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0"' + 163 ' onload="( window.CKEDITOR || window.top.CKEDITOR ).tools.callFunction(' + onLoad + ');">' + 151 164 '</body>' + 152 165 // It looks strange, but for FF2, the styles must go 153 166 // after <body>, so it (body) becames immediatelly … … 156 169 '<\/html>' ); 157 170 doc.$.close(); 158 171 159 var win = doc.getWindow();160 161 // Register the CKEDITOR global.162 win.$.CKEDITOR = CKEDITOR;163 164 win.on( 'load', function( ev )165 {166 this.isLoaded = true;167 if ( this.onLoad )168 this.onLoad();169 },170 this);171 172 172 doc.on( 'keydown', function( evt ) 173 173 { 174 174 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 }