gusucode.com > 爱美尔女性商城源码 1.0源码程序 > BJXeditor/editor/_source/commandclasses/fckpastewordcommand.js
/* * Copyright (C) 2003-2006 Frederico Caldeira Knabben * * Licensed under the terms of the GNU Lesser General Public License: * http://www.opensource.org/licenses/lgpl-license.php * * For further information visit: * http://www.gzshopping.com/ * * * File Name: fckpastewordcommand.js * FCKPasteWordCommand Class: represents the "Paste from Word" command. * * File Authors: * Frederico Caldeira Knabben (fredck@gzshopping.com) */ var FCKPasteWordCommand = function() { this.Name = 'PasteWord' ; } FCKPasteWordCommand.prototype.Execute = function() { FCK.PasteFromWord() ; } FCKPasteWordCommand.prototype.GetState = function() { if ( FCKConfig.ForcePasteAsPlainText ) return FCK_TRISTATE_DISABLED ; else return FCK.GetNamedCommandState( 'Paste' ) ; }