JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0
[ckeditor.git] / _source / plugins / specialchar / plugin.js
diff --git a/_source/plugins/specialchar/plugin.js b/_source/plugins/specialchar/plugin.js
new file mode 100644 (file)
index 0000000..ff9568d
--- /dev/null
@@ -0,0 +1,29 @@
+/*\r
+Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+*/\r
+\r
+/**\r
+ * @file Special Character plugin\r
+ */\r
+\r
+CKEDITOR.plugins.add( 'specialchar',\r
+{\r
+       init : function( editor )\r
+       {\r
+               var pluginName = 'specialchar';\r
+\r
+               // Register the dialog.\r
+               CKEDITOR.dialog.add( pluginName, this.path + 'dialogs/specialchar.js' );\r
+\r
+               // Register the command.\r
+               editor.addCommand( pluginName, new CKEDITOR.dialogCommand( pluginName ) );\r
+\r
+               // Register the toolbar button.\r
+               editor.ui.addButton( 'SpecialChar',\r
+                       {\r
+                               label : editor.lang.specialChar.toolbar,\r
+                               command : pluginName\r
+                       });\r
+       }\r
+} );\r