Ticket #6387: 6387_2.patch
File 6387_2.patch, 1012 bytes (added by , 13 years ago) |
---|
-
_source/plugins/autogrow/plugin.js
39 39 { 40 40 init : function( editor ) 41 41 { 42 for ( var eventName in { contentDom:1, key:1, selectionChange:1, insertElement:1 } )42 for ( var eventName in { contentDom:1, key:1, selectionChange:1, insertElement:1, insertHtml:1 } ) 43 43 { 44 44 editor.on( eventName, function( evt ) 45 45 { 46 46 var maximize = editor.getCommand( 'maximize' ); 47 // Some time is required for insertHtml, and it gives other events better performance as well.48 47 if ( evt.editor.mode == 'wysiwyg' && 49 48 // Disable autogrow when the editor is maximized .(#6339) 50 49 ( !maximize || maximize.state != CKEDITOR.TRISTATE_ON ) ) 51 50 { 52 setTimeout( function(){ resizeEditor( evt.editor ); }, 100);51 resizeEditor( evt.editor ); 53 52 } 54 53 }); 55 54 }