Add $CFG->aspellpath = '/path/to/aspell' to config.php
copy speller folder to /moodle/lib/
weblib.php
function use_html_editor($name="",$courseid=0) {
/// Sets up the HTML editor on textareas in the current page.
/// If a field name is provided, then it will only be
/// applied to that field - otherwise it will be used
/// on every textarea in the page.
///
/// In most cases no arguments need to be supplied
// Modification by Ludo ( Marc Alier to provide Spell Checking to the
// html editor. August 2004 malier@lsi.upc.es
/// START LUDO
global $CFG;
if(!empty($CFG->aspellpath)) {
echo "";
}
/// END LUDO
echo "\n";
}