Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Removed grammar.


Excerpt

Initialize WProofreader in <input> element using either imperative or declarative notation as it is shown in the examples below.

Code Block
languagejs
themeEmacs
titleWProofreader (Imperative Notation):
<input id="container5" type="text" value="This sampl text is aimed at demonstrating the work of WProofreader in a input textform element. WProofreader 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 WProofreader will recognized. click the underlined words and phras to see the suggestion options for correction.">

<script>
	var instance5 = WEBSPELLCHECKER.init({
	container: document.getElementById("container5"),
	autoStartup: true,
	enableGrammar: true,
	lang: 'en_US',
	serviceId: 'your-service-ID'
	});
</script>


Code Block
languagejs
themeEmacs
titleWProofreader (Declarative Notation):
<input id="container6" data-wsc-autocreate="true" data-wsc-lang="en_US" type="text" value="This sampl text is aimed at demonstrating the work of WProofreader in a input textform element. WProofreader 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 WProofreader will recognized. click the underlined words and phras to see the suggestion options for correction.">

<script>
	window.WEBSPELLCHECKER_CONFIG = {
	enableGrammar: true,
	serviceId: 'your-service-ID'
	};
</script> 
 


...