This shows you the differences between two versions of the page.
| — |
3rd:wysiwyg:fckeditor:scayth [2009/09/30 23:51] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[3rd:|<<Back]] | ||
| + | ====== Migration from hosted free to hosted paid version of SCAYT (SpellCheckAsYouType)====== | ||
| + | |||
| + | |||
| + | Encrypted customerID is required to perform migration. Encrypted customerID is provided in the registration email, sent to customer after [[http://www.spellchecker.net/fckhosted/|sign-up]] for SpellChecker.net account. It also can be obtained later in MyAccount section on SpellChecker.net web site. | ||
| + | |||
| + | ===== FCKEditor 2.6.5 ===== | ||
| + | |||
| + | |||
| + | Please modify the source code of the page that contains FCKeditor. Syntax may differ dependent on server platform. Following string of code should be added to the editor initialization code: | ||
| + | |||
| + | .ASP (VBScript): | ||
| + | |||
| + | <code asp> | ||
| + | <editor_variable>.Config.ScaytCustomerid="<customerid>" | ||
| + | </code> | ||
| + | |||
| + | HTML/JavaScript: | ||
| + | |||
| + | <code javascript> | ||
| + | <editor_variable>.Config.ScaytCustomerid="<customerid>"; | ||
| + | </code> | ||
| + | |||
| + | |||
| + | where <editor_variable> - FCKeditor object; <customerid> - encrypted customerid assigned during registering account on SpellChecker.net web site. | ||
| + | |||
| + | ==== Example ==== | ||
| + | |||
| + | HTML/JavaScript: | ||
| + | |||
| + | <code javascript> | ||
| + | <script type="text/javascript"> | ||
| + | var sFCKeditorName = 'myFCKeditor'; | ||
| + | var oFCKeditor = new FCKeditor(sFCKeditorName); | ||
| + | oFCKeditor.BasePath = "editors/FCKeditor/"; | ||
| + | // --------------------------------------------------- | ||
| + | // assign my customerid | ||
| + | // --------------------------------------------------- | ||
| + | oFCKeditor.Config.ScaytCustomerid = "1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1-nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk"; | ||
| + | // --------------------------------------------------- | ||
| + | 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 fckconfig.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".** | ||
| + | |||
| + | |||