Page History
2. User Dictionary User Interface
2.1. User Dictionary Interface in SCAYT Product
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Info |
---|
Check our User Manuals for the SCAYT product: |
3. Predefine User Dictionary in Web Application
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Example 3.1. Setting a Predefined User Dictionary in SCAYT for Editable Controls
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: 'your_service_host', servicePort: '443', servicePath: 'spellcheck31/script/ssrv.cgi', userDictionaryName: 'your_user_dictionary_name' }); </script> |
Example 3.2. Setting a Predefined User Dictionary in SCAYT plugin for CKEditor 4
Code Block | ||||
---|---|---|---|---|
| ||||
CKEDITOR.config.scayt_customerId='1:8aqCX3-uoCg12-Fnm4Z1-WwVax2-YNael2-tyyJv-nydFp-f1G3R2-EwCAE-HUvnK3-vIhF83-Jn'; CKEDITOR.config.wsc_customerId = '1:WvF0D4-UtPqN1-43nkD4-NKvUm2-daQqk3-LmNiI-z7Ysb4-mwry24-T8YrS3-Q2tpq2'; CKEDITOR.config.scayt_autoStartup = true; CKEDITOR.config.grayt_autoStartup = true; CKEDITOR.config.scayt_sLang ="en_US"; CKEDITOR.config.scayt_userDictionaryName='user_dictionary_name'; |
Example 3.3. Setting a Predefined User Dictionary in Proofreader
Code Block | ||||
---|---|---|---|---|
| ||||
var EditableControlsInstance;
WEBSPELLCHECKER.init({
container: 'originalElementId'
autoStartup: true,
spellcheckLang: 'en_US',
localization: 'en',
serviceProtocol: 'http',
servicePort: '80',
serviceHost: document.location.host,
servicePath: 'spellcheck/script/ssrv.cgi'
},
function(instance) {
EditableControlsInstance = instance;
},
function(error) {
console.log(error);
}
); |