I finally completed a spell checker for group office email composer. It uses Aspell and pspell , plugs in as an extension for ExtJs . I'm sorry if I didn't completely follow the development guide in the wiki .
I cannot guarantee this will work 100% correctly as its only just been deployed to our client. Also its has been written for English but uses the Lang options, and passes the current Lang to the php script (so it should work for other Languages NOT TESTED).
This has been tested in FireFox 3.5.6, IE 7/8, Google Chrome 3.0.195.38
I would be grateful of constructive feed back, and please I'm prove and re-post if you can.
Use at your own risk, i will not be held repsonsible for breaking your install of Group office (back up first

There are 8 files and here is where they go...
Code: Select all
/javascript/plugins/HtmlEditorSpellCheck.js
/javascript/plugins/HtmlEditorSpellCheck.php
/javascript/plugins/red.gif
/javascript/scripts.txt
/modules/email/EmailComposer.js
/modules/email/themes/ExtJS/style.css
/language/common/en.js
/themes/ExtJS/images/16x16/spellcheck.png
***Now this is in the SVN trunk I wont be submitting more files, just patches in this update stream, I don't really want to start messing with the SVN
07/01/2011 11:24 IE7 Bunched words fix in spell check window
original line 133 HtmlEditorSpellCheck.php
Code: Select all
return '<span class="spelling" ieAfterObject="'.htmlentities($endDelem).'" ieBeforeObject="'.htmlentities($startDelem).'">'.$word.'<ul>'.wraparray('<li>','</li>',$sugestions).'</ul></span>';
Code: Select all
return '<span class="spelling" style="display:inline-block; margin-right: 4px;" ieAfterObject="'.htmlentities($endDelem).'" ieBeforeObject="'.htmlentities($startDelem).'">'.$word.'<ul>'.wraparray('<li>','</li>',$sugestions).'</ul></span>';
IE white space problem bunching words when not corrected using the spell checker
Oringinal Lines 129 & 130 in HtmlEditorSpellCheck.js
Code: Select all
html = html.replace(Pattern,'$3');
subject = subject.replace(Pattern,'$3');
Code: Select all
html = html.replace(Pattern,' $3 ').replace('/\s+/mig','\s');
subject = subject.replace(Pattern,' $3 ').replace('/\s+/mig','\s');
Fixed bug with IE's dom not creating whitespace elements
Noticed that 2 mispelt words the same next to each other where not being picked up, fixed.
06/01/2010 16:18 New File 0.3 uploaded
Removed TinyMCEs decode function, it wasn't needed
Improved word replacement regular expression
Improved Special Chars Splitters
04/1/2010 18:47
Bug Detected in TinyMCE's Decode function, takes way to long.. working on fix.
Update to regular expression for html Special Chars fixed, not uploaded yet. Please bare with me.
02/1/2010 22:36 New File 0.2 uploaded, improved the regular expressions for web addresses a little.
02/1/2010 22:00 New File 0.1 uploaded, fixed drafts save asking to do a spell check and added missing scripts.txt
Enjoy.. and don't forget to minify the code.