Allow students to use html editor when messaging on the site

Allow students to use html editor when messaging on the site

by Manpreet Sambhi -
Number of replies: 1

The HTML editor does not appear for students when they are messaging each other, I would like to enable it but am not sure how.

The code in moodle lib file reads


function can_use_html_editor() {
    global $USER, $CFG;

    if (!empty($USER->htmleditor) and !empty($CFG->htmleditor)) {
        if (check_browser_version('MSIE', 5.5)) {
            return 'MSIE';
        } else if (check_browser_version('Gecko', 20030516)) {
            return 'Gecko';
        }
    }
    return false;
}

So why doesn't it work?

Thanks

Average of ratings: -