import rt 3.8.7
[freeside.git] / rt / share / html / NoAuth / RichText / FCKeditor / editor / _source / commandclasses / fckpastewordcommand.js
diff --git a/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/commandclasses/fckpastewordcommand.js b/rt/share/html/NoAuth/RichText/FCKeditor/editor/_source/commandclasses/fckpastewordcommand.js
new file mode 100644 (file)
index 0000000..b800a8f
--- /dev/null
@@ -0,0 +1,40 @@
+/*\r
+ * FCKeditor - The text editor for Internet - http://www.fckeditor.net\r
+ * Copyright (C) 2003-2009 Frederico Caldeira Knabben\r
+ *\r
+ * == BEGIN LICENSE ==\r
+ *\r
+ * Licensed under the terms of any of the following licenses at your\r
+ * choice:\r
+ *\r
+ *  - GNU General Public License Version 2 or later (the "GPL")\r
+ *    http://www.gnu.org/licenses/gpl.html\r
+ *\r
+ *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")\r
+ *    http://www.gnu.org/licenses/lgpl.html\r
+ *\r
+ *  - Mozilla Public License Version 1.1 or later (the "MPL")\r
+ *    http://www.mozilla.org/MPL/MPL-1.1.html\r
+ *\r
+ * == END LICENSE ==\r
+ *\r
+ * FCKPasteWordCommand Class: represents the "Paste from Word" command.\r
+ */\r
+\r
+var FCKPasteWordCommand = function()\r
+{\r
+       this.Name = 'PasteWord' ;\r
+}\r
+\r
+FCKPasteWordCommand.prototype.Execute = function()\r
+{\r
+       FCK.PasteFromWord() ;\r
+}\r
+\r
+FCKPasteWordCommand.prototype.GetState = function()\r
+{\r
+       if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG || FCKConfig.ForcePasteAsPlainText )\r
+               return FCK_TRISTATE_DISABLED ;\r
+       else\r
+               return FCK.GetNamedCommandState( 'Paste' ) ;\r
+}\r