This shows you the differences between two versions of the page.
| — |
3rd:wysiwyg:fckeditor:scayt [2009/10/14 04:35] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[3rd:|<<Back]] | ||
| + | ====== Migration from hosted free to licensed version ====== | ||
| + | ===== SCAYT plug-in for FCKeditor 2.6.5 + ===== | ||
| + | Please modify the page that contains FCKeditor. Following string of code should be added to the editor initialization code: | ||
| + | <code javascript> | ||
| + | <editor_variable>.Config['ScaytCustomUrl'] = "http://myhost/spellcheck/lf/scayt/scayt.js"; | ||
| + | </code> | ||
| + | where <editor_variable> - FCKeditor object; <hostname> - host name of site where licensed version of SpellChecker.net application is installed. | ||
| + | |||
| + | ==== Example ==== | ||
| + | <code javascript> | ||
| + | <script type="text/javascript"> | ||
| + | var sFCKeditorName = 'myFCKeditor'; | ||
| + | var oFCKeditor = new FCKeditor(sFCKeditorName); | ||
| + | oFCKeditor.BasePath = "editors/FCKeditor/"; | ||
| + | // --------------------------------------------------- | ||
| + | // set the loader URL | ||
| + | // --------------------------------------------------- | ||
| + | oFCKeditor.Config['ScaytCustomUrl'] = "http://myhost/spellcheck/lf/scayt/scayt.js"; | ||
| + | // --------------------------------------------------- | ||
| + | oFCKeditor.Height = 300 ; | ||
| + | oFCKeditor.Width = 700 ; | ||
| + | oFCKeditor.Value = 'This is an exampl of a sentence with two mispelled words.' ; | ||
| + | oFCKeditor.Create() ; | ||
| + | </script> | ||
| + | </code> | ||
| + | |||
| + | ===== How to make SCAYT default spell-checker in FCKeditor 2.6.5 ===== | ||
| + | |||
| + | WebSpellChecker (WSC) is a default spell-checker in FCKeditor 2.6.5. To make SpellCheckAsYouType (SCAYT) a default spell-checker in FCKeditor 2.6.5 please follow the instruction below: | ||
| + | |||
| + | 1) Open ckconfig.js (...\FCKeditor_2.6.5\fckeditor\fckconfig.js) for edit | ||
| + | 2) Change the value of parameter "FCKConfig.SpellChecker" to "SCAYT" | ||
| + | |||
| + | It should look like: **FCKConfig.SpellChecker = "SCAYT".** | ||