MindTouch Developer Center > Deki > FAQ > Editor > How do I... Enable FCKeditor's built-in spell-checker?

How do I... Enable FCKeditor's built-in spell-checker?

This functionality is only available on Deki 8.08. Note that these instructions are tailored to MindTouch Deki VM's, so on other distribution systems, you may need to tweak the instructions.

Install aspell

To enable spell check, first be sure you have installed aspell as well as your language's dictionary:

apt-get install aspell
apt-get install aspell-en

Enable FCKeditor spellcheck plugin

Go to the control panel and in the "Customize" > "Editor Configuration" screen, add these values:

FCKConfig.ToolbarSets["Default"] = [
    ['MindTouchDeki_Save','-','Source'],
    ['RemoveFormat','-','TextColor','BGColor'],
    ['MindTouchDeki_InsertExtension','-','MindTouchDeki_Transform'],
    '/',
    ['MindTouchDeki_Cancel'],
    ['Bold','Italic','Underline','StrikeThrough','-','OrderedList','UnorderedList','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','Outdent','Indent','Blockquote'],
    ['MindTouchDeki_InsertLink','MindTouchDeki_InsertImage','MindTouchDeki_InsertVideo','MindTouchDeki_InsertTemplate','Table'],
    '/',
    ['Style','FontFormat','FontName','FontSize','SpellCheck']
] ;

FCKConfig.SpellChecker = 'SpellerPages' ;

Configure FCKeditor to use the correct aspell

By default, FCKeditor attepts to load the Window's path to aspell. Go into {WEB_ROOT}/fckeditor/core/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker.php and make sure the current aspell_prog is defined:

//$aspell_prog    = '"C:\Program Files\Aspell\bin\aspell.exe"';    // by FredCK (for Windows)
$aspell_prog    = 'aspell';        

Use spell check!

Load the editor, and click your "Spell check" button! FCKeditor's spell check requires a full document pass before change are applied, so be sure you go through the whole document - you cannot spell check half the document and apply those changes.

Tag page
Viewing 3 of 3 comments: view all
For British English I did the above and then changed $lang in spellchecker.php to 'en_GB';
aspell-en also appears to include Canadian English. For the complete list of installed aspell dictionaries, try: aspell dump dicts
Posted 14:24, 29 Sep 2008
This was tough for me to figure out, but then I'm an amateur. I had trouble finding the right directory for the spellchecker.php file. I have Kilen Woods 8.08 and I used from root: "nano /var/www/dekiwiki/editor/fckeditor/core/editor/dialog/fck_spellerpages/spellerpages/server-scripts/spellchecker". Also I wasn't clear on the changes to define aspell_prog, but I just had to add commenting to the Windows version of script and uncomment the = 'aspell' line. Great improvement to Deki, thanks.
Posted 16:25, 30 Sep 2008
Has anyone tried adding a custom dictionary?
Posted 22:20, 21 Nov 2008
Viewing 3 of 3 comments: view all
You must login to post a comment.
Powered by MindTouch Deki v.8.08.2