An ajaxed based spell checker for your web applications, similar to the gmail spell check
How to Use:
- This code requires at least PHP 4.3 and either pspell or aspell.
- Just unzip all the contents to the same directory and chmod the personal_dictionary.txt file in the personal_dictionary directory to 646.
- Include cpaint2.inc.compressed.js, spell_checker.js, and spell_checker.css in the head of your page.
- The spell checker can be added to any text area on the page. Just add the title attribute to your text area and make it equal to either "spellcheck" or "spellcheck_icons". Set the accesskey attribute equal to the location of the spell_checker.php file. Make sure you include a width, a height, as well as a name and an id. Name and id should be unique.
Your textarea should look something like this:
<textarea title="spellcheck_icons" accesskey="spell_checker.php" id="spell_checker1" type="text" name="comment1" style="width: 400px; height: 200px;">Text to spell check</textarea>