80e556c08258d73472d3a809c3cf1c50f8efe373
2 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
3 For licensing, see LICENSE.html or http://ckeditor.com/license
7 * @fileOverview Plugin definition for the a11yhelp, which provides a dialog
8 * with accessibility related help.
13 var pluginName
= 'a11yhelp',
14 commandName
= 'a11yHelp';
16 CKEDITOR
.plugins
.add( pluginName
,
18 // List of available localizations.
19 availableLangs
: { en
:1, he
:1 },
21 init : function( editor
)
24 editor
.addCommand( commandName
,
28 var langCode
= editor
.langCode
;
29 langCode
= plugin
.availableLangs
[ langCode
] ? langCode
: 'en';
31 CKEDITOR
.scriptLoader
.load(
32 CKEDITOR
.getUrl( plugin
.path
+ 'lang/' + langCode
+ '.js' ),
35 CKEDITOR
.tools
.extend( editor
.lang
, plugin
.langEntries
[ langCode
] );
36 editor
.openDialog( commandName
);
39 modes
: { wysiwyg
:1, source
:1 },
44 CKEDITOR
.dialog
.add( commandName
, this.path
+ 'dialogs/a11yhelp.js' );