Ticket #3028: 3028_2.patch

File 3028_2.patch, 1.4 KB (added by Frederico Caldeira Knabben, 15 years ago)
  • _source/plugins/editingblock/plugin.js

     
    4040                        editor.on( 'uiReady', function()
    4141                                {
    4242                                        editor.setMode( editor.config.startupMode );
    43 
    44                                         if ( editor.config.startupFocus )
    45                                                 editor.focus();
    4643                                });
    4744
    4845                        editor.on( 'afterSetData', function()
     
    104101                                                        editor.focus();
    105102                                                });
    106103
     104                                        if ( editor.config.startupFocus )
     105                                                editor.focus();
     106
    107107                                        // Fire instanceReady for both the editor and CKEDITOR.
    108108                                        editor.fireOnce( 'instanceReady' );
    109109                                        CKEDITOR.fire( 'instanceReady', null, editor );
  • _source/plugins/sourcearea/plugin.js

     
    7777                                                        if ( keystrokeHandler )
    7878                                                                keystrokeHandler.attach( textarea );
    7979
    80                                                         editor.mode = 'source';
    81                                                         editor.fire( 'mode' );
     80                                                        setTimeout( function()
     81                                                        {
     82                                                                editor.mode = 'source';
     83                                                                editor.fire( 'mode' );
     84                                                        },
     85                                                        ( CKEDITOR.env.gecko || CKEDITOR.env.webkit ) ? 100 : 0 );
    8286                                                },
    8387
    8488                                                loadData : function( data )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy