Ticket #3770: 3770.patch
File 3770.patch, 1.5 KB (added by , 15 years ago) |
---|
-
_source/plugins/scayt/plugin.js
225 225 var scayt_control = plugin.getScayt( editor ); 226 226 scayt_control.setDisabled( isEnabled ); 227 227 } 228 else if ( !editor.config.scayt Params.autoStartup && plugin.engineLoaded >= 0 ) // Load first time228 else if ( !editor.config.scayt_autoStartup && plugin.engineLoaded >= 0 ) // Load first time 229 229 { 230 230 this.setState( CKEDITOR.TRISTATE_DISABLED ); 231 231 … … 383 383 }; 384 384 })( element.$, items_suggestion[i] ); 385 385 386 if ( i < editor.config.scayt Params.maxSuggestions )386 if ( i < editor.config.scayt_maxSuggestions ) 387 387 { 388 388 addButtonCommand( editor, 'button_' + commandName, items_suggestion[i], 389 389 commandName, exec, 'scayt_suggest', i + 1 ); … … 457 457 } 458 458 459 459 // Start plugin 460 if ( editor.config.scayt Params.autoStartup )460 if ( editor.config.scayt_autoStartup ) 461 461 { 462 462 var showInitialState = function() 463 463 { … … 472 472 }); 473 473 })(); 474 474 475 CKEDITOR.config.scaytParams = CKEDITOR.config.scaytParams || {}; 476 CKEDITOR.config.scaytParams.maxSuggestions = CKEDITOR.config.scaytParams.maxSuggestions || 5; 477 CKEDITOR.config.scaytParams.autoStartup = CKEDITOR.config.scaytParams.autoStartup || false; 475 CKEDITOR.config.scayt_maxSuggestions = 5; 476 CKEDITOR.config.scayt_autoStartup = false; 478 477