Sha256: ed882cd4a500f5871ea3f96af18991a944d47ec9a5aa0971c9ef22f9c421c052

Contents?: true

Size: 1.28 KB

Versions: 7

Compression:

Stored size: 1.28 KB

Contents

/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

/**
 * @fileOverview Plugin definition for the a11yhelp, which provides a dialog
 * with accessibility related help.
 */

(function()
{
	var pluginName = 'a11yhelp',
		commandName = 'a11yHelp';

	CKEDITOR.plugins.add( pluginName,
	{
		// List of available localizations.
		availableLangs : { cs:1, cy:1, da:1, de:1, el:1, en:1, eo:1, fa:1, fi:1, fr:1, gu:1, he:1, it:1, mk:1, nb:1, nl:1, no:1, tr:1, ug:1, vi:1, 'zh-cn':1 },

		init : function( editor )
		{
			var plugin = this;
			editor.addCommand( commandName,
				{
					exec : function()
					{
						var langCode = editor.langCode;
						langCode = plugin.availableLangs[ langCode ] ? langCode : 'en';

						CKEDITOR.scriptLoader.load(
								CKEDITOR.getUrl( plugin.path + 'lang/' + langCode + '.js' ),
								function()
								{
									CKEDITOR.tools.extend( editor.lang, plugin.langEntries[ langCode ] );
									editor.openDialog( commandName );
								});
					},
					modes : { wysiwyg:1, source:1 },
					readOnly : 1,
					canUndo : false
				});

			CKEDITOR.dialog.add( commandName, this.path + 'dialogs/a11yhelp.js' );
		}
	});
})();

Version data entries

7 entries across 7 versions & 4 rubygems

Version Path
rich-1.3.1 vendor/assets/ckeditor/ckeditor/_source/plugins/a11yhelp/plugin.js
rich-1.3.0 vendor/assets/ckeditor/ckeditor/_source/plugins/a11yhelp/plugin.js
rich-1.2.0 vendor/assets/ckeditor/ckeditor/_source/plugins/a11yhelp/plugin.js
ckeditor-rails-0.0.5 vendor/assets/ckeditor/ckeditor/_source/plugins/a11yhelp/plugin.js
refinerycms-ckeditor-0.2.0 app/assets/javascripts/ckeditor/_source/plugins/a11yhelp/plugin.js
rich-1.1.0 vendor/assets/ckeditor/ckeditor/_source/plugins/a11yhelp/plugin.js
radiant-ck_editor_filter-extension-0.2.6 public/javascripts/extensions/ck_editor_filter/ckeditor/_source/plugins/a11yhelp/plugin.js