JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6
[ckeditor.git] / _source / plugins / docprops / plugin.js
diff --git a/_source/plugins/docprops/plugin.js b/_source/plugins/docprops/plugin.js
new file mode 100644 (file)
index 0000000..d905bdf
--- /dev/null
@@ -0,0 +1,22 @@
+/*\r
+Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.\r
+For licensing, see LICENSE.html or http://ckeditor.com/license\r
+*/\r
+\r
+CKEDITOR.plugins.add( 'docprops',\r
+{\r
+       init : function( editor )\r
+       {\r
+               var cmd = new CKEDITOR.dialogCommand( 'docProps' );\r
+               // Only applicable on full page mode.\r
+               cmd.modes = { wysiwyg : editor.config.fullPage };\r
+               editor.addCommand( 'docProps', cmd );\r
+               CKEDITOR.dialog.add( 'docProps', this.path + 'dialogs/docprops.js' );\r
+\r
+               editor.ui.addButton( 'DocProps',\r
+               {\r
+                       label : editor.lang.docprops.label,\r
+                       command : 'docProps'\r
+               });\r
+       }\r
+});\r