This shows you the differences between two versions of the page.
| — |
3rd:wysiwyg:fckeditor:wschf2l [2009/10/14 04:35] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | [[3rd:|<<Back]] | ||
| + | ====== Migration from hosted free to licensed version ====== | ||
| + | ===== WSC plug-in for FCKeditor 2.6.4 + ===== | ||
| + | Please modify the page that contains FCKeditor. Following string of code should be added to the editor initialization code: | ||
| + | |||
| + | <code javascript> | ||
| + | <editor_variable>.Config['WSChLoaderScript']="http://<hostname>/spellcheck/lf/22/js/wsc_fck2plugin.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['WSChLoaderScript']="http://myhost/spellcheck/lf/22/js/wsc_fck2plugin.js"; | ||
| + | // --------------------------------------------------- | ||
| + | oFCKeditor.Height = 300 ; | ||
| + | oFCKeditor.Width = 700 ; | ||
| + | oFCKeditor.Value = 'This is an exampl of a sentence with two mispelled words.' ; | ||
| + | oFCKeditor.Create() ; | ||
| + | </script> | ||
| + | </code> | ||