Enabling spell checking within FCKeditor

CMS Made Simple uses the great GPL WYSIWYG editor FCKeditor and I noticed this morning that it has a spell checking facility.

To get it to work, I:

Installed aspell on my dev server:

[code]apt-get install aspell
Reading Package Lists… Done
Building Dependency Tree… Done
The following extra packages will be installed:
aspell-bin aspell-en dictionaries-common libaspell15
Suggested packages:
aspell-doc spellutils ispell emacsen-common jed-extra
The following NEW packages will be installed:
aspell aspell-bin aspell-en dictionaries-common libaspell15
[/code]0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.

<strong>Edited fckconfig.js:

[js]FCKConfig.SpellChecker = 'SpellerPages' ;[/js]

Edited editor/dialog/fck_spellerpages/server-scripts/spellchecker.php so that the path is to a unix binary rather than a windows one:

[php]$aspell_prog = 'aspell'; // by FredCK (for Linux)
//$aspell_prog = '”C:Program FilesAspellbinaspell.exe”'; // by FredCK (for Windows)[/php]

Now when I press the ABC (with a tick) icon I got a pop-up with my copy and the first unrecognised word highlighted, I've then the option to change, chose from replacements or ignore, much the same as any other spell check software.


FCK Editor documentation wiki
CMS Made Simple