Ticket #3028: 3028_light.patch

File 3028_light.patch, 1.5 KB (added by Artur Formella, 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                                        {
     106                                                // Firefox don't like to execute it directly, so we use
     107                                                // a timeout.
     108                                                setTimeout( function(){ editor.focus(); }, 100);
     109                                        }
     110
    107111                                        // Fire instanceReady for both the editor and CKEDITOR.
    108112                                        editor.fireOnce( 'instanceReady' );
    109113                                        CKEDITOR.fire( 'instanceReady', null, editor );
  • _source/plugins/sourcearea/plugin.js

     
    6262                                                                        } );
    6363                                                        }
    6464
     65                                                        textarea.on( 'blur', function()
     66                                                                {
     67                                                                        editor.focusManager.blur();
     68                                                                });
     69                                                        textarea.on( 'focus', function()
     70                                                                {
     71                                                                        editor.focusManager.focus();
     72                                                                } );
     73
    6574                                                        // Reset the holder element and append the
    6675                                                        // <textarea> to it.
    6776                                                        holderElement.setHtml( '' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy