Ticket #5572: 5572.patch
File 5572.patch, 1.2 KB (added by , 14 years ago) |
---|
-
_source/plugins/scayt/plugin.js
47 47 oParams.userDictionaryName = editor.config.scayt_userDictionaryName || ''; 48 48 oParams.sLang = editor.config.scayt_sLang || 'en_US'; 49 49 50 oParams.onLoad = function(){ 51 52 if(CKEDITOR.env.ie && CKEDITOR.env.version>7){ 53 this.addStyle(this.selectorCss(), 'padding-bottom: 2px !important;');} 54 55 if(!editor.config.scayt_autoStartup) 56 this.focus(); 57 }; 58 59 /* 50 60 oParams.onBeforeChange = function() 51 61 { 52 62 if ( !editor.checkDirty() ) 53 63 setTimeout( function(){ editor.resetDirty(); } ); 54 64 }; 55 65 */ 56 66 var scayt_custom_params = window.scayt_custom_params; 57 67 if ( typeof scayt_custom_params == 'object') 58 68 { … … 334 344 this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON ); 335 345 336 346 var scayt_control = plugin.getScayt( editor ); 347 scayt_control.focus(); 337 348 scayt_control.setDisabled( isEnabled ); 338 349 } 339 350 else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time