You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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

WebSpellChecker Proofreader (Imperative Notation):
<textarea id="container7" 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 instance7 = WEBSPELLCHECKER.init({
	container: document.getElementById("container7"),
	autoStartup: true,
	enableGrammar: true,
	lang: 'en_US',
	serviceId: 'your-service-ID'
	});
</script>
WebSpellChecker Proofreader (Declarative Notation):
<textarea id="container8" data-wsc-autocreate="true" data-wsc-lang="en_US" 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,
	serviceId: 'your-service-ID'
    };
</script> 
 

  • No labels