Ticket #5572: 5572_3.patch
File 5572_3.patch, 1.2 KB (added by , 13 years ago) |
---|
-
_source/plugins/scayt/plugin.js
53 53 // Draw down word marker to avoid being covered by background-color style.(#5466) 54 54 if ( !( CKEDITOR.env.ie && CKEDITOR.env.version < 8 ) ) 55 55 this.addStyle( this.selectorCss(), 'padding-bottom: 2px !important;' ); 56 57 // Set focus on editable area when SCAYT loaded ( 5572 ticket ) 58 if(editor.focusManager.hasFocus) 59 this.focus( ); 56 60 }; 57 61 58 62 oParams.onBeforeChange = function() … … 335 339 336 340 exec: function( editor ) 337 341 { 342 // Control focus on the menu button click (ticket 5650 ) 343 editor.focus(); 344 338 345 if ( plugin.isScaytReady( editor ) ) 339 346 { 340 347 var isEnabled = plugin.isScaytEnabled( editor ); … … 342 349 this.setState( isEnabled ? CKEDITOR.TRISTATE_OFF : CKEDITOR.TRISTATE_ON ); 343 350 344 351 var scayt_control = plugin.getScayt( editor ); 352 345 353 scayt_control.setDisabled( isEnabled ); 354 346 355 } 347 356 else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time 348 357 {