X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fspecialchar%2Fplugin.js;fp=_source%2Fplugins%2Fspecialchar%2Fplugin.js;h=ff9568d1058acf3f38c8181c7911bf7efeccb867;hb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;hp=0000000000000000000000000000000000000000;hpb=b93873b6532ee7515fb0d6f8b73176c44fad28f7;p=ckeditor.git diff --git a/_source/plugins/specialchar/plugin.js b/_source/plugins/specialchar/plugin.js new file mode 100644 index 0000000..ff9568d --- /dev/null +++ b/_source/plugins/specialchar/plugin.js @@ -0,0 +1,29 @@ +/* +Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +For licensing, see LICENSE.html or http://ckeditor.com/license +*/ + +/** + * @file Special Character plugin + */ + +CKEDITOR.plugins.add( 'specialchar', +{ + init : function( editor ) + { + var pluginName = 'specialchar'; + + // Register the dialog. + CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/specialchar.js' ); + + // Register the command. + editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) ); + + // Register the toolbar button. + editor.ui.addButton( 'SpecialChar', + { + label : editor.lang.specialChar.toolbar, + command : pluginName + }); + } +} );