JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / docprops / plugin.js
1 /*\r
2 Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license\r
4 */\r
5 \r
6 CKEDITOR.plugins.add( 'docprops',\r
7 {\r
8         init : function( editor )\r
9         {\r
10                 var cmd = new CKEDITOR.dialogCommand( 'docProps' );\r
11                 // Only applicable on full page mode.\r
12                 cmd.modes = { wysiwyg : editor.config.fullPage };\r
13                 editor.addCommand( 'docProps', cmd );\r
14                 CKEDITOR.dialog.add( 'docProps', this.path + 'dialogs/docprops.js' );\r
15 \r
16                 editor.ui.addButton( 'DocProps',\r
17                 {\r
18                         label : editor.lang.docprops.label,\r
19                         command : 'docProps'\r
20                 });\r
21         }\r
22 });\r