WebSpellChecker (WSC)

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

WebSpellChecker (WSC) for Textarea

Spell Check

Installation Guide

1. Specify WSC URI(see sample, line 7-10)

2. Define the WSC invoker:

doSpell({ctrl:sMyEditor, lang:sInitialLanguage}), 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.
  • sWscTab {String,optional} — WSC tab opened by default. Now supported: spell, grammar, thes.
  • sUserDictionaryName {String,optional} — user dictionary name.
  • sCustomDictionaryId {Array,optional} — custom dictionary identifier.
  • sSchemaId {int,optional} — custom look&feel package.
  • sWidth {int,optional} — WSC window width.
  • sHeight {int,optional} — WSC window height.
  • sInitY {int,optional} — WSC window initial Y coordinate.
  • sInitX {int,optional} — WSC window initial X coordinate.
  • sAutoClose {String,optional} — WSC window auto closing indicator. Now supported: no - no auto closing, yes - the window is closed after all misspellings are changed to suggestions, nomisspelings - the window is closed when no misspellings in the text.
  • onCancel {Function,optional} — callback function executed after spell checking is canceled.
  • onFinish {Function,optional} — callback function executed after spell checking is finished.
  • onClose {Function,optional} — callback function executed after WSC window is closed.

See sample, lines 14-30.

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


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
		<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" >
		//For Licensed version only
		<script type="text/javascript" src="[protocol]://[your_hostname]/spellcheck/script/ssrv.cgi?cmd=script&doc=wsc"></script>
		//For Hosted version only
		<script type="text/javascript" src="http://svc.webspellchecker.net/spellcheck/script/ssrv.cgi?cmd=script&doc=wsc&customerid=[your_long_customer_ID]"> </script>

		<script type="text/javascript">
			function startSpellCheck(){
					ctrl: 'myEditor',
					lang: 'en_US',
					title: sCustomWSCPopupTitle,
					cmd: sWscTab,
					userDictionaryName: sUserDictionaryName,
					customDictionaryName: ['ID1','ID2'],					
					width: sWidth,
					height: sHeight,
					top: sInitY,
					left: sInitX,
					autoClose: sAutoClose,
					onCancel: onCancel,
					onFinish: onFinish,
					onClose: onClose
		<textarea id="myEditor" name="myEditor">
            This is an exampl of a sentence with two mispelled words.
		<input  type="button" value="Spell Check" onclick="startSpellCheck();" />