Changeset 5500
- Timestamp:
- 05/17/10 14:54:51 (3 years ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/plugins/scayt/plugin.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/scayt/plugin.js
r5485 r5500 383 383 exec: function( editor ) 384 384 { 385 var autoStartup = editor.config.scayt_autoStartup; 386 autoStartup = ( autoStartup == undefined ) || autoStartup; 387 385 388 if ( plugin.isScaytReady( editor ) ) 386 389 { … … 392 395 scayt_control.setDisabled( isEnabled ); 393 396 } 394 else if ( ! editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time397 else if ( !autoStartup && plugin.engineLoaded >= 0 ) // Load first time 395 398 { 396 399 this.setState( CKEDITOR.TRISTATE_DISABLED ); … … 696 699 697 700 // Start plugin 698 if ( editor.config.scayt_autoStartup ) 701 var autoStartup = editor.config.scayt_autoStartup; 702 if ( ( autoStartup == undefined ) || autoStartup ) 699 703 { 700 704 editor.on( 'instanceReady', function() … … 728 732 * @name CKEDITOR.config.scayt_autoStartup 729 733 * @type Boolean 730 * @default false731 * @example 732 * config.scayt_autoStartup = true;734 * @default true 735 * @example 736 * config.scayt_autoStartup = false; 733 737 */ 734 738
Note: See TracChangeset
for help on using the changeset viewer.
