Ticket #3555: 3555.patch
File 3555.patch, 1.1 KB (added by , 16 years ago) |
---|
-
_source/plugins/scayt/plugin.js
42 42 try { 43 43 scayt_control.setDisabled( scayt_control.paused === false ); // I really don't know why it couse JS error in IE 44 44 } catch (e) {} 45 editor.fire( 'showScaytState' ); 45 46 }; 46 47 47 48 editor.on( 'contentDom', createInstnce ) // Get the iframe somehow. … … 98 99 }); 99 100 100 101 if ( editor.document ) 101 {102 102 createInstnce(); 103 editor.fire( 'showScaytState' );104 }105 103 }; 106 104 107 105 CKEDITOR.plugins.scayt = … … 438 436 439 437 // Start plugin 440 438 if ( editor.config.scayt_autoStartup ) 439 { 440 var showInitialState = function() 441 { 442 editor.removeListener( 'showScaytState', showInitialState ); 443 command.setState( plugin.isScaytEnabled( editor ) ? CKEDITOR.TRISTATE_ON : CKEDITOR.TRISTATE_OFF ); 444 }; 445 editor.on( 'showScaytState', showInitialState ); 446 441 447 plugin.loadEngine( editor ); 448 } 442 449 } 443 450 }); 444 451 })();