Ticket #6387: 6387_2.patch

File 6387_2.patch, 1012 bytes (added by Sa'ar Zac Elias, 13 years ago)
  • _source/plugins/autogrow/plugin.js

     
    3939        {
    4040                init : function( editor )
    4141                {
    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 } )
    4343                        {
    4444                                editor.on( eventName, function( evt )
    4545                                {
    4646                                        var maximize = editor.getCommand( 'maximize' );
    47                                         // Some time is required for insertHtml, and it gives other events better performance as well.
    4847                                        if ( evt.editor.mode == 'wysiwyg' &&
    4948                                                // Disable autogrow when the editor is maximized .(#6339)
    5049                                                ( !maximize || maximize.state != CKEDITOR.TRISTATE_ON ) )
    5150                                        {
    52                                                 setTimeout( function(){ resizeEditor( evt.editor ); }, 100 );
     51                                                resizeEditor( evt.editor );
    5352                                        }
    5453                                });
    5554                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy