source: trunk/admin/inc/FCKeditor/editor/_source/commandclasses/fckpastewordcommand.js@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 934 bytes
Line 
1/*
2 * FCKeditor - The text editor for internet
3 * Copyright (C) 2003-2006 Frederico Caldeira Knabben
4 *
5 * Licensed under the terms of the GNU Lesser General Public License:
6 * http://www.opensource.org/licenses/lgpl-license.php
7 *
8 * For further information visit:
9 * http://www.fckeditor.net/
10 *
11 * "Support Open Source software. What about a donation today?"
12 *
13 * File Name: fckpastewordcommand.js
14 * FCKPasteWordCommand Class: represents the "Paste from Word" command.
15 *
16 * File Authors:
17 * Frederico Caldeira Knabben (fredck@fckeditor.net)
18 */
19
20var FCKPasteWordCommand = function()
21{
22 this.Name = 'PasteWord' ;
23}
24
25FCKPasteWordCommand.prototype.Execute = function()
26{
27 FCK.PasteFromWord() ;
28}
29
30FCKPasteWordCommand.prototype.GetState = function()
31{
32 if ( FCKConfig.ForcePasteAsPlainText )
33 return FCK_TRISTATE_DISABLED ;
34 else
35 return FCK.GetNamedCommandState( 'Paste' ) ;
36}
Note: See TracBrowser for help on using the repository browser.