[opencms-dev] Enabling spell checking really isn't that hard...

Nigel Kersten nigel at cofa.unsw.edu.au
Tue Jun 27 07:35:14 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm using the php method of spell checking with SpellerPages and aspell.

It really was quite simple in the end with an apache/tomcat proxy setup.

* make sure php is working on your apache install.
* Edit resources/editors/fckeditor/fckeditor.js
to have the line:
FCKConfig.SpellChecker                  = 'SpellerPages' ;

* Edit resources/editors/fckeditor/editor/dialog/fck_spellerpages/ 
spellerpages/server-scripts/spellchecker.php
to have the line:
$aspell_prog = '/opt/local/bin/aspell';
(or wherever your aspell binary is)

* in the same file edit the line:
$lang = 'en';
to have your language.

* In OpenCMS, edit: /system/workplace/editors/fckeditor/configwidget.js

to have the line:
FCKConfig.SpellChecker                  = 'SpellerPages' ;
(I'm not actually sure if that bit is necessary or not to be honest)

and add the line:

toolbar.append(",'-','SpellCheck'");

to show the SpellCheck button in fckeditor.

(Note that the *LAST* button in your fckeditor dialog needs to have  
the ] symbol. follow the existing syntax.

Then it's all working... at least for me... ymmv.

- --
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFEoMP3AXUak+OwF4gRAoj5AJ4lyTof8upG2iCryxLz5//wcqh3jQCeKT2T
jgYujgTYGmQE/1Aqmqb/KK4=
=cU8H
-----END PGP SIGNATURE-----



More information about the opencms-dev mailing list