Ticket #5830: 5830.2.patch

File 5830.2.patch, 907 bytes (added by WebSpellChecker.net, 14 years ago)

Patch on TooManyMisspellings and BigText

  • plugin.js

     
    5858                                                this.focus();
    5959
    6060                                };
    61 
     61                       
     62                        //Disable SCAYT when text to check is too big (#5830)
     63                        oParams.onSizeTextBig = function()
     64                        {
     65                                if( !this.disabled )
     66                                {
     67                                        this.setDisabled( true );
     68                                       
     69                                        editor.getCommand( commandName ).setState( CKEDITOR.TRISTATE_OFF );
     70                                }
     71                        };
     72                       
     73                        //Disable SCAYT when there are too many misspellings in the text (#5830)
     74                        oParams.onTooManyMisspellings = function()
     75                        {
     76                                if( !this.disabled )
     77                                {
     78                                        this.setDisabled( true );
     79                                       
     80                                        editor.getCommand( commandName ).setState( CKEDITOR.TRISTATE_OFF );
     81                                }
     82                        };
     83                       
    6284                        oParams.onBeforeChange = function()
    6385                        {
    6486                                if ( plugin.getScayt( editor ) && !editor.checkDirty() )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy