Ticket #5572: 5572-3.patch

File 5572-3.patch, 1.2 KB (added by WebSpellChecker.net, 14 years ago)
  • _source/plugins/scayt/plugin.js

     
    5353                                        // Draw down word marker to avoid being covered by background-color style.(#5466)
    5454                                        if ( !( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) )
    5555                                                this.addStyle( this.selectorCss(), 'padding-bottom: 2px !important;' );
     56                                       
     57                                        // Set focus on editable area when SCAYT loaded ( 5572 ticket )
     58                                        if(editor.focusManager.hasFocus)
     59                                                this.focus( );
    5660                                };
    5761
    5862                        oParams.onBeforeChange = function()
     
    335339
    336340                exec: function( editor )
    337341                {
     342                        // Control focus on the menu button click (ticket 5650 )
     343                        editor.focus();
     344                       
    338345                        if ( plugin.isScaytReady( editor ) )
    339346                        {
    340347                                var isEnabled = plugin.isScaytEnabled( editor );
     
    342349                                this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON );
    343350
    344351                                var scayt_control = plugin.getScayt( editor );
     352                               
    345353                                scayt_control.setDisabled( isEnabled );
     354                               
    346355                        }
    347356                        else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 )        // Load first time
    348357                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy