~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to wiki/htdocs/applets/FCKeditor/editor/_source/commandclasses/fckpastewordcommand.js

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mto: This revision was merged to the branch mainline in revision 18.
  • Revision ID: james.westby@ubuntu.com-20080622211713-inlv5k4eifxckelr
Import upstream version 1.7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * FCKeditor - The text editor for internet
 
3
 * Copyright (C) 2003-2005 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
}