Changeset 5077
- Timestamp:
- 02/09/10 17:41:03 (3 years ago)
- Location:
- CKEditor/branches/features/aria/_source
- Files:
-
- 3 edited
-
core/plugins.js (modified) (1 diff)
-
plugins/a11yhelp/plugin.js (modified) (1 diff)
-
plugins/keystrokes/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/aria/_source/core/plugins.js
r5062 r5077 77 77 }); 78 78 79 /**80 * Used for lazy load an individual plugin's language file.81 * @param pluginName82 * @param callback83 */84 CKEDITOR.editor.prototype.loadPluginLang = function( pluginName, callback )85 {86 87 var plugin = CKEDITOR.plugins.get( pluginName ),88 langCode = this.langCode;89 90 if( plugin.lang )91 callback.apply( plugin );92 else93 {94 CKEDITOR.scriptLoader.load(95 CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),96 function()97 {98 CKEDITOR.tools.extend( this.lang, plugin.lang[ langCode ] );99 callback.apply( plugin, arguments );100 }, this ) ;101 }102 };103 104 79 CKEDITOR.plugins.setLang = function( pluginName, languageCode, languageEntries ) 105 80 { -
CKEditor/branches/features/aria/_source/plugins/a11yhelp/plugin.js
r5065 r5077 15 15 CKEDITOR.plugins.add( pluginName, 16 16 { 17 langs : [ 'en' ], 17 18 init : function( editor ) 18 19 { 20 var plugin = this; 19 21 editor.addCommand( commandName, 20 22 { 21 23 exec : function() 22 24 { 23 editor.loadPluginLang( pluginName, function() 24 { 25 editor.openDialog( commandName ); 26 }); 25 var langCode = ( CKEDITOR.tools.indexOf( plugin.langs, editor.langCode ) >= 0 ? 26 editor.langCode : plugin.langs[ 0 ] ); 27 28 CKEDITOR.scriptLoader.load( 29 CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ), 30 function() 31 { 32 CKEDITOR.tools.extend( editor.lang, plugin.lang[ langCode ] ); 33 editor.openDialog( commandName ); 34 }) ; 27 35 }, 28 36 modes : { wysiwyg:1, source:1 }, -
CKEditor/branches/features/aria/_source/plugins/keystrokes/plugin.js
r5071 r5077 215 215 [ CKEDITOR.CTRL + 85 /*U*/, 'underline' ], 216 216 217 [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ] 217 [ CKEDITOR.ALT + 109 /*-*/, 'toolbarCollapse' ], 218 [ CKEDITOR.ALT + 48 /*-*/, 'a11yHelp' ] 218 219 ];
Note: See TracChangeset
for help on using the changeset viewer.
