WebSpellChecker (WSC)

WSC operates in a separate browser window so your work is not obstructed. Corrected text is automatically returned to the form.

Textarea (Extra functionality)

Installation Guide

1. Download and install Sproxy.

2. Specify WSC URI (See sample, line 6);

3. Define the WSC invoker:

doSpell({ctrl:sMyEditor, lang:sInitialLanguage, onClose:onCloseHandler, onCancel:onCancelHandler, onFinish:onFinishHandler}), where:

sMyEditor {String,mandatory} — textarea instance identifier.
sInitialLanguage {String,mandatory} — initial spell check language name. Now supported: en_US, en_GB, pt_BR, en_CA, fr_CA, fr_FR, de_DE, it_IT, el_GR, es_ES, da_DK, nl_NL, nb_NO, pt_PT, sv_SE, fi_FI.
onCloseHandler {Function,optional} — Callback function reference.
onCancelHandler {Function,optional} — Callback function reference.
onFinishHandler {Function,optional} — Callback function reference.

(see sample, lines 8-16).

4. To execute a custom code after finishing, cancelling the spell check or closing the WSC window, define the callback functions:

onCloseHandler = function(mSender){}.
onCancelHandler = function(mSender){}.
onFinishHandler = function(mSender){}, where:

mSender {Mixed,optional} — Checked Element or Array of Elements (depending on contents).

(see sample, lines 12-14), and register them (see sample, lines 18-20).

5. Invoke WSC when you want to check the spelling (see sample, line 28).

Sample