Subversion Repositories Applications.papyrus

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1075 ddelon 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
 
20
var FCKPasteWordCommand = function()
21
{
22
	this.Name = 'PasteWord' ;
23
}
24
 
25
FCKPasteWordCommand.prototype.Execute = function()
26
{
27
	FCK.PasteFromWord() ;
28
}
29
 
30
FCKPasteWordCommand.prototype.GetState = function()
31
{
32
	if ( FCKConfig.ForcePasteAsPlainText )
33
		return FCK_TRISTATE_DISABLED ;
34
	else
35
		return FCK.GetNamedCommandState( 'Paste' ) ;
36
}