Page History
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<script> window.SCAYT_CONFIG = { spellcheckLang: 'en_US', serviceProtocol: 'https', serviceHost: 'svc.webspellchecker.net', servicePort: '443', servicePath: 'spellcheck31/script/ssrv.cgi', customerId: 'customerId_value' }; </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> |
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: 'customerId_value' }, function(instance) { iframeInstance = instance; } ); </script> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<script> <script> window.SCAYT_CONFIG = { spellcheckLang: 'en_US', serviceProtocol: 'https', serviceHost: 'svc.webspellchecker.net', servicePort: '443', servicePath: 'spellcheck31/script/ssrv.cgi', customerId: 'customerId_value' }; </script> <iframe id="container2" data-scayt-autocreate="true" src="editable_doc.html"></iframe> /*Editable_doc.html example: */ <html> <head> <title>SCAYT for Editable Controls</title> </head> <body contenteditable>This is an exampl of a sentence with two mispelled words. Just type text with misspelling to see how it works. </body> </html> |
3.3. Contenteditable INPUT Element
Code Blockwarning | ||||||
---|---|---|---|---|---|---|
| ||||||
<input idname="container3scayt_input" typesize="text50" value="This is sc_dojoType="scayt.Input" lang="<language_short_code>" value="This is an exampl of a sentence with two mispelled words."> |
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 <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: 'customerId_value' }); </script> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<script> window.SCAYT_CONFIG = { spellcheckLang: 'en_US', serviceProtocol: 'https', serviceHost: 'svc.webspellchecker.net', servicePort: '443', servicePath: 'spellcheck31/script/ssrv.cgi', customerId: 'customerId_value' }; </script> <input id="container3" data-scayt-autocreate="true" type="text" value="<input id="container3" data-scayt-autocreate="true" type="text" value="This is an exampl of a sentence with two mispelled words."> |
3.4. Contenteditable TEXTAREA Element
Warning | ||
---|---|---|
| ||
<textarea name="scayt_textarea" sc_dojoType="scayt.Textarea" scaytConfig.customDictionaryIds = [1,3001]; lang="<language_short_code>" cols="40" rows="7"> |
...
|
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: 'customerId_value' }); </script> |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<script> window.SCAYT_CONFIG = { spellcheckLang: 'en_US', serviceProtocol: 'https', serviceHost: 'svc.webspellchecker.net', servicePort: '443', servicePath: 'spellcheck31/script/ssrv.cgi', customerId: 'customerId_value' }; </script> <textarea data-scayt-autocreate="true" id="container4"> This is an exampl of a sentence with two mispelled words. </textarea> |
...