JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / plugins / specialchar / plugin.js
1 /*\r
2 Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license\r
4 */\r
5 \r
6 /**\r
7  * @file Special Character plugin\r
8  */\r
9 \r
10 CKEDITOR.plugins.add( 'specialchar',\r
11 {\r
12         init : function( editor )\r
13         {\r
14                 var pluginName = 'specialchar';\r
15 \r
16                 // Register the dialog.\r
17                 CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/specialchar.js' );\r
18 \r
19                 // Register the command.\r
20                 editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );\r
21 \r
22                 // Register the toolbar button.\r
23                 editor.ui.addButton( 'SpecialChar',\r
24                         {\r
25                                 label : editor.lang.specialChar.toolbar,\r
26                                 command : pluginName\r
27                         });\r
28         }\r
29 } );\r