Ticket #5572: 5572.patch

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

     
    4747                        oParams.userDictionaryName = editor.config.scayt_userDictionaryName || '';
    4848                        oParams.sLang = editor.config.scayt_sLang || 'en_US';
    4949
     50                         oParams.onLoad = function(){
     51   
     52                                if(CKEDITOR.env.ie && CKEDITOR.env.version>7){
     53                                 this.addStyle(this.selectorCss(), 'padding-bottom: 2px !important;');}
     54                               
     55                                if(!editor.config.scayt_autoStartup)
     56                                        this.focus();
     57                   };
     58                       
     59                        /*
    5060                        oParams.onBeforeChange = function()
    5161                        {
    5262                                if ( !editor.checkDirty() )
    5363                                        setTimeout( function(){ editor.resetDirty(); } );
    5464                        };
    55 
     65                        */
    5666                        var scayt_custom_params = window.scayt_custom_params;
    5767                        if ( typeof scayt_custom_params == 'object')
    5868                        {
     
    334344                                this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON );
    335345
    336346                                var scayt_control = plugin.getScayt( editor );
     347                                scayt_control.focus();
    337348                                scayt_control.setDisabled( isEnabled );
    338349                        }
    339350                        else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 )        // Load first time
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy