| 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 | |