Ticket #3770: 3770.patch

File 3770.patch, 1.5 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/scayt/plugin.js

     
    225225                                var scayt_control = plugin.getScayt( editor );
    226226                                scayt_control.setDisabled( isEnabled );
    227227                        }
    228                         else if ( !editor.config.scaytParams.autoStartup && plugin.engineLoaded >= 0 )  // Load first time
     228                        else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 )        // Load first time
    229229                        {
    230230                                this.setState( CKEDITOR.TRISTATE_DISABLED );
    231231                               
     
    383383                                                                        };
    384384                                                                })( element.$, items_suggestion[i] );
    385385
    386                                                         if ( i < editor.config.scaytParams.maxSuggestions )
     386                                                        if ( i < editor.config.scayt_maxSuggestions )
    387387                                                        {
    388388                                                                addButtonCommand( editor, 'button_' + commandName, items_suggestion[i],
    389389                                                                        commandName, exec, 'scayt_suggest', i + 1 );
     
    457457                        }
    458458
    459459                        // Start plugin
    460                         if ( editor.config.scaytParams.autoStartup )
     460                        if ( editor.config.scayt_autoStartup )
    461461                        {
    462462                                var showInitialState = function()
    463463                                {
     
    472472        });
    473473})();
    474474
    475 CKEDITOR.config.scaytParams = CKEDITOR.config.scaytParams || {};
    476 CKEDITOR.config.scaytParams.maxSuggestions = CKEDITOR.config.scaytParams.maxSuggestions || 5;
    477 CKEDITOR.config.scaytParams.autoStartup = CKEDITOR.config.scaytParams.autoStartup || false;
     475CKEDITOR.config.scayt_maxSuggestions = 5;
     476CKEDITOR.config.scayt_autoStartup = false;
    478477
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy