Initialize SCAYT functionality in <div> element using either imperative or declarative notation as it is shown in the examples below.<div contenteditable id="container1">
This is an exampl of a sentence with two mispelled words.
Just type text with misspelling to see how it works.
</div>
<script>
var instance1 = new SCAYT.SCAYT({
container: document.getElementById("container1"),
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>
<div contenteditable id="container1" data-scayt-autocreate="true">
This is an exampl of a sentence with two mispelled words.
Just type text with misspelling to see how it works.
</div>
SCAYT 3 (Imperative Notation):
SCAYT 3 (Declarative Notation):