+++ /dev/null
-/*\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
- * FCKStyleCommand Class: represents the "Spell Check" command.\r
- * (Gecko specific implementation)\r
- */\r
-\r
-var FCKSpellCheckCommand = function()\r
-{\r
- this.Name = 'SpellCheck' ;\r
- this.IsEnabled = ( FCKConfig.SpellChecker != 'ieSpell' ) ;\r
-}\r
-\r
-FCKSpellCheckCommand.prototype.Execute = function()\r
-{\r
- switch ( FCKConfig.SpellChecker )\r
- {\r
- case 'SpellerPages' :\r
- FCKDialog.OpenDialog( 'FCKDialog_SpellCheck', 'Spell Check', 'dialog/fck_spellerpages.html', 440, 480 ) ;\r
- break;\r
-\r
- case 'WSC' :\r
- FCKDialog.OpenDialog( 'FCKDialog_SpellCheck', 'Spell Check', 'wsc/w.html', 530, 480 ) ;\r
- }\r
-}\r
-\r
-FCKSpellCheckCommand.prototype.GetState = function()\r
-{\r
- if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )\r
- return FCK_TRISTATE_DISABLED ;\r
- return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;\r
-}\r