In order to get the spellchecker up and running I had to make two
changes to the following file:
editor/src/site/editing/cf2/resources/js/htmlarea.js
There is a block near the top where plugins are loaded which needs the
following line adding:
HTMLArea.loadPlugin("SpellChecker");
The, near the bottom, the plugin needs to be registered with the
following line:
editor.registerPlugin("SpellChecker");
I also had some problems with the spellchecker not picking up the
correct dictionary. After some hacking about I found the default
setting can be controlled in the following file:
editor/src/site/cforms/resources/xinha/plugins/SpellChecker/spell-checker.js
There should be a line that looks like this:
HTMLArea.Config.prototype.SpellChecker = { 'backend': 'php',
'personalFilesDir' : '', 'defaultDictionary' : 'nl' };
Changing 'nl' to 'en_GB' meant the spellchecker opens up with the
correct dictionary for our site.
Hope that helps,
Orde
On Thu, 2007-10-25 at 09:56 +0200, Marco Casavecchia Morganti wrote:
> Hello all,
>
> I would like to enable the spell checker into the CMS.
> I properly installed aspell and rebuilded the CMS (by setting the
> cms.aspell.location property with the full path of my aspell binary),
> but it doesn't work. :O(
>
> Is there anybody that makes it work?
> Is there a way to debug it?
>
> Thanks.
> By Marco (MCM).
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
Orde Saunders
Systems Analyst
mform
phone 0131 556 4845
fax 0131 556 4846
mobile 077 111 84 565
www.mform.co.uk
Disclaimer:
This communication is from mform Holdings Limited, which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named in the address list above. If you are not the
intended recipient, be aware that any disclosure, copying, distribution or use
of the contents of this information is prohibited. If you have received this
electronic message in error, please notify us by telephone or e-mail (to the
number or address above) immediately. Opinions, conclusions and other
information in this message that do not relate to the official business of
mform and shall be understood as neither given nor endorsed by it. Whilst we
have taken reasonable precautions to ensure that this e-mail and any attachment
has been checked for viruses, we cannot guarantee that they are virus free and
we cannot accept liability for any damage sustained as a result of software
viruses. We would advise that you carry out your own virus checks, especially
before opening an attachment.
Visit the mform website at www.mform.co.uk
mform Holdings Limited is registered in Scotland with registered number
SC313032 and its registered address is at 4th Floor, Saltire Court, 20 Castle
Terrace, Edinburgh, EH1 2EN.
mform Holdings Limited includes the following company: mform.co.uk, registered
in England and Wales, company no. 3919342 Registered office: Ewshot Hall
Cottage, Heath Lane, Ewshot, Farnham, Surrey, GU10 5AL
mform.co.uk Limited is Authorised & Regulated by the Financial Service
Authority
********************************************
Hippocms-dev: Hippo CMS development public mailinglist