Initialize SCAYT functionality in <textarea> element using either imperative or declarative notation as it is shown in the examples below.<textarea id="container4">
This is an exampl of a sentence with two mispelled words.
</textarea>
<script>
var instance4 = new SCAYT.SCAYT({
container: document.getElementById("container4"),
autoStartup: true,
spellcheckLang: 'en_US',
serviceProtocol: 'https',
serviceHost: 'svc.webspellchecker.net',
servicePort: '443',
servicePath: 'spellcheck31/script/ssrv.cgi',
customerId: 'encrypted-customer-ID'
});
</script>
<script>
window.SCAYT_CONFIG = {
spellcheckLang: 'en_US',
serviceProtocol: 'https',
serviceHost: 'svc.webspellchecker.net',
servicePort: '443',
servicePath: 'spellcheck31/script/ssrv.cgi',
customerId: 'encrypted-customer-ID'
};
</script>
<textarea data-scayt-autocreate="true" id="container4">
This is an exampl of a sentence with two mispelled words.
</textarea>
SCAYT 3 (Imperative Notation):
SCAYT 3 (Declarative Notation):