JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0
[ckeditor.git] / _source / plugins / about / plugin.js
diff --git a/_source/plugins/about/plugin.js b/_source/plugins/about/plugin.js
new file mode 100644 (file)
index 0000000..13b2d07
--- /dev/null
@@ -0,0 +1,22 @@
+/*\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
+CKEDITOR.plugins.add( 'about',\r
+{\r
+       init : function( editor )\r
+       {\r
+               var command = editor.addCommand( 'about', new CKEDITOR.dialogCommand( 'about' ) );\r
+               command.modes = { wysiwyg:1, source:1 };\r
+               command.canUndo = false;\r
+\r
+               editor.ui.addButton( 'About',\r
+                       {\r
+                               label : editor.lang.about.title,\r
+                               command : 'about'\r
+                       });\r
+\r
+               CKEDITOR.dialog.add( 'about', this.path + 'dialogs/about.js' );\r
+       }\r
+});\r