Ticket #1659: 1659_4.patch
File 1659_4.patch, 1.4 KB (added by , 15 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
242 242 body.disabled = true; 243 243 body.contentEditable = true; 244 244 body.removeAttribute( 'disabled' ); 245 246 // #1659: Editing area should fill the editable frame in IE (IE7+ part). 247 if ( CKEDITOR.env.version >= 7 && domDocument.compatMode == 'CSS1Compat' ) 248 { 249 var resizeFunc = CKEDITOR.tools.bind( function() 250 { 251 this.body.runtimeStyle.minHeight = ( this.documentElement.clientHeight - 22 ) + 'px'; 252 }, domDocument ); 253 254 domWindow.attachEvent( 'onresize', resizeFunc ); 255 resizeFunc(); 256 } 245 257 } 246 258 else 247 259 domDocument.designMode = 'on'; … … 295 307 } 296 308 }, 297 309 0 ); 310 311 // Avoid memory leaks - we're dealing with raw DOM nodes here. 312 body = null; 298 313 }; 299 314 300 315 editor.addMode( 'wysiwyg', … … 413 428 editor.on( 'insertHtml', onInsertHtml, null, null, 20 ); 414 429 editor.on( 'insertElement', onInsertElement, null, null, 20 ); 415 430 }); 431 432 // #1659: Editing area should fill the editable frame in IE. 433 if ( CKEDITOR.env.ie ) 434 editor.addCss( 'body{ margin: 0px; height: 100%; } html{ padding: 10px; }' ); 416 435 } 417 436 }); 418 437 })();