Ticket #8052: 8052.patch
File 8052.patch, 848 bytes (added by , 14 years ago) |
---|
-
_source/plugins/autogrow/plugin.js
93 93 } 94 94 }; 95 95 96 editor.addCommand( 'autogrow', { exec : resizeEditor, modes : { wysiwyg:1 }, readOnly: 1, canUndo: false } ); 97 96 98 for ( var eventName in { contentDom:1, key:1, selectionChange:1, insertElement:1 } ) 97 99 { 98 100 editor.on( eventName, function( evt ) … … 103 105 // Disable autogrow when the editor is maximized .(#6339) 104 106 ( !maximize || maximize.state != CKEDITOR.TRISTATE_ON ) ) 105 107 { 106 setTimeout( function(){ resizeEditor( evt.editor );}, 100 );108 setTimeout( function(){ editor.execCommand( 'autogrow' ) }, 100 ); 107 109 } 108 110 }); 109 111 }