2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
\r
3 For licensing, see LICENSE.html or http://ckeditor.com/license
\r
6 CKEDITOR.plugins.add( 'pastefromword',
\r
8 init : function( editor )
\r
10 // Register the command.
\r
11 editor.addCommand( 'pastefromword', new CKEDITOR.dialogCommand( 'pastefromword' ) );
\r
13 // Register the toolbar button.
\r
14 editor.ui.addButton( 'PasteFromWord',
\r
16 label : editor.lang.pastefromword.toolbar,
\r
17 command : 'pastefromword'
\r
20 // Register the dialog.
\r
21 CKEDITOR.dialog.add( 'pastefromword', this.path + 'dialogs/pastefromword.js' );
\r
26 * Whether the "Ignore font face definitions" checkbox is enabled by default in
\r
27 * the Paste from Word dialog.
\r
31 * config.pasteFromWordIgnoreFontFace = false;
\r
33 CKEDITOR.config.pasteFromWordIgnoreFontFace = true;
\r
36 * Whether the "Remove styles definitions" checkbox is enabled by default in
\r
37 * the Paste from Word dialog.
\r
41 * config.pasteFromWordRemoveStyle = true;
\r
43 CKEDITOR.config.pasteFromWordRemoveStyle = false;
\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
52 * config.pasteFromWordKeepsStructure = true;
\r
54 CKEDITOR.config.pasteFromWordKeepsStructure = false;
\r