Rev | Line | |
---|
[2] | 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: fckspellcheckcommand_gecko.js
|
---|
| 14 | * FCKStyleCommand Class: represents the "Spell Check" command.
|
---|
| 15 | * (Gecko specific implementation)
|
---|
| 16 | *
|
---|
| 17 | * File Authors:
|
---|
| 18 | * Frederico Caldeira Knabben (fredck@fckeditor.net)
|
---|
| 19 | */
|
---|
| 20 |
|
---|
| 21 | var FCKSpellCheckCommand = function()
|
---|
| 22 | {
|
---|
| 23 | this.Name = 'SpellCheck' ;
|
---|
| 24 | this.IsEnabled = ( FCKConfig.SpellChecker == 'SpellerPages' ) ;
|
---|
| 25 | }
|
---|
| 26 |
|
---|
| 27 | FCKSpellCheckCommand.prototype.Execute = function()
|
---|
| 28 | {
|
---|
| 29 | FCKDialog.OpenDialog( 'FCKDialog_SpellCheck', 'Spell Check', 'dialog/fck_spellerpages.html', 440, 480 ) ;
|
---|
| 30 | }
|
---|
| 31 |
|
---|
| 32 | FCKSpellCheckCommand.prototype.GetState = function()
|
---|
| 33 | {
|
---|
| 34 | return this.IsEnabled ? FCK_TRISTATE_OFF : FCK_TRISTATE_DISABLED ;
|
---|
| 35 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.