Page History
...
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
2. Update SCAYT initialization in controls. Depending on the type of the controls (HTML elements) where the SCAYT functionality is embedded and used, please update your configuration as follows.
...
Warning | ||
---|---|---|
| ||
<div contenteditable sc_dojoType="scayt.ui"> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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> |
...
language | js |
---|---|
theme | Emacs |
title | SCAYT 3 (Declarative Notation): |
...
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
3.2. Contenteditable IFRAME Element
Warning | ||
---|---|---|
| ||
<iframe sc_dojoType="scayt.ui" src="editable_doc.html"> |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<iframe id="container2" src="editable_doc.html"></iframe>
<script>
var iframeInstance;
var iframeElement = document.getElementById("container2");
SCAYT.SCAYT.createScaytControl(iframeElement, {
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'
},
function(instance) {
iframeInstance = instance;
}
);
</script> |
...
language | js |
---|---|
theme | Emacs |
title | SCAYT 3 (Declarative Notation): |
...
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
3.3. Contenteditable INPUT Element
Warning | ||
---|---|---|
| ||
<input name="scayt_input" size="50" sc_dojoType="scayt.Input" lang="<language_short_code>" |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<input id="container3" type="text" value="This is an exampl of a sentence with two mispelled words.">
<script>
var instance3 = new SCAYT.SCAYT({
container: document.getElementById("container3"),
autoStartup: true,
spellcheckLang: 'en_US',
serviceProtocol: 'https',
serviceHost: 'svc.webspellchecker.net',
servicePort: '443',
servicePath: 'spellcheck31/script/ssrv.cgi',
customerId: 'encrypted-customer-ID'
});
</script> |
...
language | js |
---|---|
theme | Emacs |
title | SCAYT 3 (Declarative Notation): |
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
...
3.4. Contenteditable TEXTAREA Element
Warning | ||
---|---|---|
| ||
<textarea name="scayt_textarea" sc_dojoType="scayt.Textarea" scaytConfig.customDictionaryIds = [1,3001]; |
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<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> |
...
language | js |
---|---|
theme | Emacs |
title | SCAYT 3 (Declarative Notation): |
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
...
You can find more information about SCAYT 3 parameters for Editable Controls here.
...