Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt

Initialize the WebSpellChecker Proofreader functionality in <textarea> element using either imperative or declarative notation as it is shown in the examples below.

Code Block
languagejs
themeEmacs
titleSCAYT 3 (Imperative Notation):
<textarea id="container4">
    This is an exampl of a sentence with two mispelled words type="text">This sampl text is aimed at demonstrating the work of WebSpellChecker Proofread in a textarea textform element. WebSpellChecker Proofread will find all your speling and grammar mistakes as you type and suggest how to correct them. Type your text here or use this one too see an few of of the problems that SCAYT will recognized. click the underlined words and phras to see the suggestion options for correction.
</textarea>
 
<script>
    	var instance4 = new SCAYTWEBSPELLCHECKER.SCAYTinit({
        	container: document.getElementById("container4"),
        	autoStartup: true,
        spellcheckLang	enableGrammar: true,
	lang: 'en_US',
        	serviceProtocol: 'https',
        	serviceHost: 'svc.webspellchecker.net',
        	servicePort: '443',
        	servicePath: 'spellcheck31/script/ssrv.cgifcgi',
        customerId	serviceId: 'encrypted-customerservice-ID'
    	});
</script>


Code Block
languagejs
themeEmacs
titleSCAYT 3 (Declarative Notation):
<script>
    window.SCAYT_CONFIG = {
        spellcheckLang: 'en_US',
 	    serviceProtocol: 'https',
        serviceHost: 'svc.webspellchecker.net',       
        servicePort: '443',
        <textarea id="container4" type="text">This sampl text is aimed at demonstrating the work of WebSpellChecker Proofread in a textarea textform element. WebSpellChecker Proofread will find all your speling and grammar mistakes as you type and suggest how to correct them. Type your text here or use this one too see an few of of the problems that SCAYT will recognized. click the underlined words and phras to see the suggestion options for correction.
</textarea>

<script>
	window.WEBSPELLCHECKER_CONFIG = {
	enableGrammar: true,
	lang: 'en_US',
	serviceProtocol: 'https',
	serviceHost: 'svc.webspellchecker.net',
	servicePort: '443',
	servicePath: 'spellcheck31/script/ssrv.cgifcgi',
        customerId	serviceId: 'encrypted-customerservice-ID'
    };
</script>
 
<textarea data-scayt-autocreate="true" id="container4">
    This is an exampl of a sentence with two mispelled words.
</textarea>