Page History
2. User Dictionary User Interface
2.1. User Dictionary Interface in
SCAYT ProductInfo |
---|
Check our User Manuals for the SCAYT product: |
2.2. User Dictionary Interface in Proofreader
2.3. User Dictionary Interface in WSC
WebSpellChecker Proofreader
3. 3. Predefined User Dictionary in Web Application
Excerpt Include | ||||||
---|---|---|---|---|---|---|
|
Example 3.1. Setting a Predefined User Dictionary in
SCAYT for Editable ControlsWebSpellChecker Proofreader
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.SCAYTvar EditableControlsInstance; WEBSPELLCHECKER.init({ container: document.getElementById("container1")'originalElementId', autoStartup: true, customerID: "<your encrypted customer ID (activation key)" enableGrammar: true, spellcheckLanglang: 'en_US', userDictionaryName: 'your_user_dictionary_name', serviceProtocol: 'https', serviceHostservicePort: 'your_service_host443', servicePortserviceHost: '443svc.webspellchecker.net', servicePath: 'spellcheck31/script/ssrv.cgifcgi', serviceId: 'encrypted-service-ID' }, function(instance) { userDictionaryName: 'your_user_dictionary_name' EditableControlsInstance = instance; }, function(error) { console.log(error); </script> } ); |
Example 3.2. Setting a Predefined User Dictionary in SCAYT plugin for CKEditor 4
Code Block | ||||
---|---|---|---|---|
| ||||
CKEDITOR.scayt_customerId: "your encrypted customer ID (activation key)",
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); } ); |