Or using the function from moodle 2.0 with your administrator capability checking:
function can_use_html_editor() {
global $USER, $CFG, $COURSE;
if (!empty($USER->htmleditor) and !empty($CFG->htmleditor) and has_capability('moodle/site:doanything', get_context_instance(CONTEXT_COURSE, $COURSE->id))) {
if (check_browser_version('MSIE', 5.5)) {
return 'MSIE';
} else if (check_browser_version('Gecko', 20030516)) {
return 'Gecko';
} else if (check_browser_version('Safari', 3)) {
return 'Safari';
} else if (check_browser_version('Opera', 9)) {
return 'Opera';
}
}
return false;
}
I have not updated those editor packages for some weeks but I might do some upgrading during the next weeks ... mostly for css and configuration because 2.0 is not ready yet and many people are interested in other editors than htmlarea.