Ticket #3395: 3395.patch
File 3395.patch, 1.4 KB (added by , 15 years ago) |
---|
-
_source/plugins/sourcearea/plugin.js
61 61 62 62 if ( !CKEDITOR.env.quirks || CKEDITOR.env.version < 7 ) 63 63 { 64 function getHolderRect(){ 65 return { 66 height : holderElement.$.clientHeight + 'px', 67 width : holderElement.$.clientWidth + 'px' 68 } 69 } 70 64 71 onResize = function() 65 72 { 66 textarea.setStyles({ 67 height : holderElement.$.clientHeight + 'px', 68 width : holderElement.$.clientWidth + 'px' }); 73 textarea.setStyles( getHolderRect() ); 69 74 }; 75 styles = CKEDITOR.tools.extend( styles, getHolderRect(), true ); 70 76 editor.on( 'resize', onResize ); 71 onResize();72 77 } 73 78 } 74 79 else … … 85 90 } ); 86 91 } 87 92 88 textarea.setStyles( styles );89 90 93 // Reset the holder element and append the 91 94 // <textarea> to it. 92 95 holderElement.setHtml( '' ); … … 91 94 // <textarea> to it. 92 95 holderElement.setHtml( '' ); 93 96 holderElement.append( textarea ); 97 textarea.setStyles( styles ); 94 98 95 99 // The editor data "may be dirty" after this point. 96 100 editor.mayBeDirty = true;