Ticket #5830: 5830.3.patch

File 5830.3.patch, 2.6 KB (added by WebSpellChecker.net, 13 years ago)
  • _source/plugins/scayt/plugin.js

     
    6060                                                this.focus();
    6161
    6262                                };
     63                               
     64                        //Disable SCAYT when text to check is too big (#5830)
     65                        oParams.onSizeTextBig = function()
     66                        {
     67                                if( !this.disabled )
     68                                {
     69                                        this.setDisabled( true );
     70                                       
     71                                        editor.getCommand( commandName ).setState( CKEDITOR.TRISTATE_OFF );
     72                                }
     73                        };
     74                       
     75                        //Disable SCAYT when there are too many misspellings in the text (#5830)
     76                        oParams.onTooManyMisspellings = function()
     77                        {
     78                                if( !this.disabled )
     79                                {
     80                                        this.setDisabled( true );
     81                                       
     82                                        editor.getCommand( commandName ).setState( CKEDITOR.TRISTATE_OFF );
     83                                }
     84                        };
    6385
    6486                        oParams.onBeforeChange = function()
    6587                        {
     
    943965 * @example
    944966 * config.scayt_contextMenuItemsOrder = 'moresuggest|control|suggest';
    945967 */
     968
     969 /**
     970 * Define number of words when SCAYT starts to check if there are too many misspellings in text.
     971 *
     972 * @name scaytConfig.minCheckIncorrectWord
     973 * @type Number
     974 * @default 10
     975 * @example
     976 * scaytConfig = { minCheckIncorrectWord: 20 };
     977 */
     978 
     979 /**
     980 * Define the maximum possible percent of incorrect words in text.
     981 * If (number of incorrect words)/(number of all words) >maxPercentIncorrectWord,
     982 * then SCAYT becomes disabled.
     983 *
     984 * @name scaytConfig.maxPercentIncorrectWord
     985 * @type Number
     986 * @default 0.8
     987 * @example
     988 * scaytConfig = { maxPercentIncorrectWord: 0.4 };
     989 */
     990 
     991 /**
     992 * Define number of words when SCAYT starts to check if there are too many misspellings in a query to server.
     993 *
     994 * @name scaytConfig.minCheckIncorrectWordInQuery
     995 * @type Number
     996 * @default 60
     997 * @example
     998 * scaytConfig = { minCheckIncorrectWordInQuery: 100 };
     999 */
     1000 
     1001 /**
     1002 * Define the maximum possible percent of incorrect words in a query to server.
     1003 * If (number of incorrect words in query)/(number of all words in query) >maxPercentIncorrectWordInQuery,
     1004 * then SCAYT becomes disabled.
     1005 *
     1006 * @name scaytConfig.maxPercentIncorrectWordInQuery
     1007 * @type Number
     1008 * @default 0.8
     1009 * @example
     1010 * scaytConfig = { maxPercentIncorrectWordInQuery: 0.4 };
     1011 */
     1012 
     1013 /**
     1014 * Define the maximum number of symbols in text.
     1015 * If it's greater than maxSizeMarkup, SCAYT becomes disabled.
     1016 *
     1017 * @name scaytConfig.maxSizeMarkup
     1018 * @type Number
     1019 * @default 6000
     1020 * @example
     1021 * scaytConfig = { maxSizeMarkup: 50000 };
     1022 */
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy