Ticket #5632: 5632_2.patch

File 5632_2.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<8)){
     55                                                this.addStyle(this.selectorCss(), 'padding-bottom: 2px !important;');
     56                                       
     57                                       
     58                                       
     59                                       
     60                                };
     61                               
    5062                        oParams.onBeforeChange = function()
    5163                        {
    5264                                if ( !editor.checkDirty() )
    5365                                        setTimeout( function(){ editor.resetDirty(); } );
    5466                        };
    55 
     67                       
    5668                        var scayt_custom_params = window.scayt_custom_params;
    5769                        if ( typeof scayt_custom_params == 'object')
    5870                        {
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy