Changeset 3971
- Timestamp:
- 07/24/09 14:13:03 (4 years ago)
- Location:
- CKEditor/trunk/_source/plugins
- Files:
-
- 4 edited
-
scayt/dialogs/options.js (modified) (7 diffs)
-
scayt/plugin.js (modified) (8 diffs)
-
wsc/dialogs/tmpFrameset.html (modified) (1 diff)
-
wsc/dialogs/wsc.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/scayt/dialogs/options.js
r3945 r3971 195 195 } 196 196 //apply handler 197 dic[ this.getId() ].apply( null, [ this, dic_name, dic_buttons ] );197 window.dic[ this.getId() ].apply( null, [ this, dic_name, dic_buttons ] ); 198 198 199 199 return true; … … 304 304 //console.info("--plugin "); 305 305 306 scayt.createUserDictionary(dic_name,306 window.scayt.createUserDictionary(dic_name, 307 307 function(arg) 308 308 { … … 322 322 }; 323 323 324 dic.dic_rename = function( el, dic_name , dic_buttons)324 dic.dic_rename = function( el, dic_name ) 325 325 { 326 326 // … … 330 330 var err_massage = captions["err_dic_rename"] || ""; 331 331 var suc_massage = captions["succ_dic_rename"] || ""; 332 scayt.renameUserDictionary(dic_name,332 window.scayt.renameUserDictionary(dic_name, 333 333 function(arg) 334 334 { … … 355 355 // try to delete dictionary 356 356 // @TODO: delete dict 357 scayt.deleteUserDictionary(357 window.scayt.deleteUserDictionary( 358 358 function(arg) 359 359 { … … 380 380 var suc_massage = captions["succ_dic_restore"]; 381 381 382 scayt.restoreUserDictionary(dic_name,382 window.scayt.restoreUserDictionary(dic_name, 383 383 function(arg) 384 384 { … … 436 436 // * user dictionary 437 437 if ( userDicActive ){ 438 scayt.getNameUserDictionary(438 window.scayt.getNameUserDictionary( 439 439 function( o ) 440 440 { -
CKEditor/trunk/_source/plugins/scayt/plugin.js
r3945 r3971 12 12 { 13 13 var commandName = 'scaytcheck', 14 sc_on_cssclass = 'scayt_enabled',15 sc_off_cssclass = 'scayt_disabled',16 14 openPage = ''; 17 15 … … 41 39 } 42 40 43 var scayt_control = new scayt( oParams );41 var scayt_control = new window.scayt( oParams ); 44 42 45 43 // Copy config. … … 121 119 editor.on( 'scaytDialog', function( ev ) // Communication with dialog. 122 120 { 123 ev.data.djConfig = djConfig;121 ev.data.djConfig = window.djConfig; 124 122 ev.data.scayt_control = plugin.getScayt( editor ); 125 123 ev.data.tab = openPage; 126 ev.data.scayt = scayt;124 ev.data.scayt = window.scayt; 127 125 }); 128 126 … … 158 156 getScayt : function( editor ) 159 157 { 160 var instance = this.instances[ editor.name ]; 161 return instance; 158 return this.instances[ editor.name ]; 162 159 }, 163 160 isScaytReady : function( editor ) 164 161 { 165 162 return this.engineLoaded === true && 166 'undefined' !== typeof scayt && this.getScayt( editor );163 'undefined' !== typeof window.scayt && this.getScayt( editor ); 167 164 }, 168 165 isScaytEnabled : function( editor ) … … 380 377 if ( editor.contextMenu && editor.addMenuItems ) 381 378 { 382 editor.contextMenu.addListener( function( element , selection)379 editor.contextMenu.addListener( function( element ) 383 380 { 384 381 if ( !( plugin.isScaytEnabled( editor ) && element ) ) … … 393 390 var sLang = scayt_control.getLang(), 394 391 _r = {}, 395 items_suggestion = scayt.getSuggestion( word, sLang );392 items_suggestion = window.scayt.getSuggestion( word, sLang ); 396 393 if (!items_suggestion || !items_suggestion.length ) 397 394 return null; … … 418 415 { 419 416 return { 420 exec: function( editor)417 exec: function() 421 418 { 422 419 scayt_control.replace(el, s); … … 472 469 exec: function() 473 470 { 474 scayt.addWordToUserDictionary( element.$ );471 window.scayt.addWordToUserDictionary( element.$ ); 475 472 } 476 473 }; -
CKEditor/trunk/_source/plugins/wsc/dialogs/tmpFrameset.html
r3796 r3971 23 23 } 24 24 25 var opener; 25 26 function tryLoad() 26 27 { -
CKEditor/trunk/_source/plugins/wsc/dialogs/wsc.js
r3508 r3971 56 56 } 57 57 else if ( i++ == 180 ) // Timeout: 180 * 250ms = 45s. 58 _cancelOnError( errorMsg );58 window._cancelOnError( errorMsg ); 59 59 }; 60 60 } … … 79 79 // global var is used in FCK specific core 80 80 // change on equal var used in fckplugin.js 81 gFCKPluginName = 'wsc';81 window.gFCKPluginName = 'wsc'; 82 82 83 83 LangComparer.setDefaulLangCode( editor.config.defaultLanguage );
Note: See TracChangeset
for help on using the changeset viewer.
