***** Note that this Post has been completely rewritten to simplify the process and old post has been deleted*****

This is the step-by-step process to tweak FCKEditor to use Netspell as spellchecker

1. Download Netspell.2.1.7.zip

2. Extract the zip file to your wwwroot/ and rename it to Netspell (for convenience)

3. Run  setup.bat in Netspell folder

4. Pull up http://localhost/Netspell/demo/Demo.Web.CSharp/default.htm  page and make sure spell checker works.

5. Now download FCKEditor_2.6.2.zip

6. Extract it to wwwroot/  and rename it to FCKEditor.

7. Assuming you are using ASP.NET with c#,  we are going to use Netspell/demo/Demo.Web.CSharp/SpellCheck.aspx as the base page for spell checking.

8.Modify the FCKeditor\fckeditor\fckconfig.js to set spellchecker as Netspell

FCKConfig.SpellChecker   = ‘NetSpell’ ; 

9. Modify FCkEditor/fckeditor/editor/_source/Commandclasses/fckspellcheckcommand_ie.js. I added all the required javascript to this file so that you dont need to change any of the netspell files.  ONLY thing you need to be checked is location of SpellCheck.aspx.  I am using  /Netspell/demo/Demo.Web.CSharp/SpellCheck.aspx.   But if you are keeping this file somewhere else change this js file accordingly

Download FIle here

10. As we changed FCKEditor _source files, we need to compress them again to produce updated js files. For doing this download FCKPackager.exe from http://www.fckeditor.net/fckpackager

11. copy packager to /FCKEditor/fckeditor  folder and run it through command prompt
  C:\Inetpub\wwwroot\FCKeditor\fckeditor>fckpackager.exe

12. Create a basic HTML page to test.

 <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>
<title>NetSpell Web Demo</title>
<script type=”text/javascript” src=”/FCKEditor/fckeditor/fckeditor.js”></script>
</head>
<body>
<form>
<script type=”text/javascript”>
var oFCKeditor = new FCKeditor(‘FCKeditor1’);
oFCKeditor.BasePath = “/FCKEditor/fckeditor/”;
oFCKeditor.Create();
</script>
</form>
</body>
</html>

Advertisements