Changeset 3853
- Timestamp:
- 07/09/09 17:33:37 (4 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 3 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/floatpanel/plugin.js (modified) (1 diff)
-
_source/plugins/panel/plugin.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r3852 r3853 111 111 <li><a href="http://dev.fckeditor.net/ticket/3903">#3903</a> : Color button plugin doesn't read config entry from editor instance correctly.</li> 112 112 <li><a href="http://dev.fckeditor.net/ticket/3801">#3801</a> : Comments at the start of the document was lost in IE.</li> 113 <li><a href="http://dev.fckeditor.net/ticket/3879">#3879</a> : Color button panel was incorrect size on first open in webkit.</li>114 113 <li><a href="http://dev.fckeditor.net/ticket/3871">#3871</a> : Unable to redo when undos to the front of snapshots stack.</li> 115 114 <li><a href="http://dev.fckeditor.net/ticket/3909">#3909</a> : Move focus from editor into a text input control is broken.</li> -
CKEditor/trunk/_source/plugins/floatpanel/plugin.js
r3843 r3853 212 212 } 213 213 214 if ( panel.isLoaded ) 215 setHeight(); 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 } 216 223 else 217 224 panel.onLoad = setHeight; -
CKEditor/trunk/_source/plugins/panel/plugin.js
r3843 r3853 135 135 doc = iframe.getFrameDocument(); 136 136 137 var win = doc.getWindow();138 139 // Register the CKEDITOR global.140 win.$.CKEDITOR = CKEDITOR;141 142 137 // Initialize the IFRAME document body. 143 138 doc.$.open(); … … 146 141 if ( CKEDITOR.env.isCustomDomain() ) 147 142 doc.$.domain = document.domain; 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 143 156 144 doc.$.write( … … 160 148 '<style>.' + className + '_container{visibility:hidden}</style>' + 161 149 '</head>' + 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 + ');">' + 150 '<body class="cke_' + dir + ' cke_panel_frame ' + CKEDITOR.env.cssClass + '" style="margin:0;padding:0">' + 164 151 '</body>' + 165 152 // It looks strange, but for FF2, the styles must go … … 169 156 '<\/html>' ); 170 157 doc.$.close(); 158 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 171 172 172 doc.on( 'keydown', function( evt )
Note: See TracChangeset
for help on using the changeset viewer.
