      1 /*
      2 Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
      3 For licensing, see LICENSE.html or http://ckeditor.com/license
      4 */
      5
      6 CKEDITOR.plugins.add( 'pastefromword',
      7 {
      8 	init : function( editor )
      9 	{
     10 		// Register the command.
     11 		editor.addCommand( 'pastefromword', new CKEDITOR.dialogCommand( 'pastefromword' ) );
     12
     13 		// Register the toolbar button.
     14 		editor.ui.addButton( 'PasteFromWord',
     15 			{
     16 				label : editor.lang.pastefromword.toolbar,
     17 				command : 'pastefromword'
     18 			} );
     19
     20 		// Register the dialog.
     21 		CKEDITOR.dialog.add( 'pastefromword', this.path + 'dialogs/pastefromword.js' );
     22 	}
     23 } );
     24
     25 CKEDITOR.config.pasteFromWordIgnoreFontFace = true;
     26 CKEDITOR.config.pasteFromWordRemoveStyle = false;
     27 CKEDITOR.config.pasteFromWordKeepsStructure = false;
     28