JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
d7cf4b594045df065fd29709da46f06c823653f0
[ckeditor.git] / _source / plugins / pastefromword / plugin.js
1 /*\r
2 Copyright (c) 2003-2009, 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( 'pastefromword',\r
7 {\r
8         init : function( editor )\r
9         {\r
10                 // Register the command.\r
11                 editor.addCommand( 'pastefromword', new CKEDITOR.dialogCommand( 'pastefromword' ) );\r
12 \r
13                 // Register the toolbar button.\r
14                 editor.ui.addButton( 'PasteFromWord',\r
15                         {\r
16                                 label : editor.lang.pastefromword.toolbar,\r
17                                 command : 'pastefromword'\r
18                         } );\r
19 \r
20                 // Register the dialog.\r
21                 CKEDITOR.dialog.add( 'pastefromword', this.path + 'dialogs/pastefromword.js' );\r
22         }\r
23 } );\r
24 \r
25 /**\r
26  * Whether the "Ignore font face definitions" checkbox is enabled by default in\r
27  * the Paste from Word dialog.\r
28  * @type Boolean\r
29  * @default true\r
30  * @example\r
31  * config.pasteFromWordIgnoreFontFace = false;\r
32  */\r
33 CKEDITOR.config.pasteFromWordIgnoreFontFace = true;\r
34 \r
35 /**\r
36  * Whether the "Remove styles definitions" checkbox is enabled by default in\r
37  * the Paste from Word dialog.\r
38  * @type Boolean\r
39  * @default false\r
40  * @example\r
41  * config.pasteFromWordRemoveStyle = true;\r
42  */\r
43 CKEDITOR.config.pasteFromWordRemoveStyle = false;\r
44 \r
45 /**\r
46  * Whether to keep structure markup (<h1>, <h2>, etc.) or replace\r
47  * it with elements that create more similar pasting results when pasting\r
48  * content from Microsoft Word into the Paste from Word dialog.\r
49  * @type Boolean\r
50  * @default false\r
51  * @example\r
52  * config.pasteFromWordKeepsStructure = true;\r
53  */\r
54 CKEDITOR.config.pasteFromWordKeepsStructure = false;\r