Ticket #5632: 5632.patch

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

     
    4646                        oParams.customDictionaryIds = editor.config.scayt_customDictionaryIds || '';
    4747                        oParams.userDictionaryName = editor.config.scayt_userDictionaryName || '';
    4848                        oParams.sLang = editor.config.scayt_sLang || 'en_US';
    49 
     49                       
     50                        // Introduce SCAYT onLoad call back (#5572 and #5466 tickets)
     51                        oParams.onLoad = function()
     52                        {
     53                                // Set up markup decoration to avoid conflicts with ckeditor service markup( 5466 ticket )
     54                                if(CKEDITOR.env.ie && CKEDITOR.env.version>7)
     55                                        this.addStyle(this.selectorCss(), 'padding-bottom: 2px !important;');
     56                        };
     57                               
    5058                        oParams.onBeforeChange = function()
    5159                        {
    5260                                if ( !editor.checkDirty() )
    5361                                        setTimeout( function(){ editor.resetDirty(); } );
    5462                        };
    55 
     63                       
    5664                        var scayt_custom_params = window.scayt_custom_params;
    5765                        if ( typeof scayt_custom_params == 'object')
    5866                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy