diff --git a/classes/edit_form.php b/classes/edit_form.php index 1c50c32..55fa1f8 100644 --- a/classes/edit_form.php +++ b/classes/edit_form.php @@ -54,8 +54,8 @@ class edit_form extends \moodleform { $mform->setType('name', PARAM_TEXT); $mform->addRule('name', null, 'required'); - $mform->addElement('text', 'html', get_string('html', 'htmlcert')); - $mform->setType('html', PARAM_TEXT); + $mform->addElement('editor', 'html', get_string('html', 'htmlcert')); + $mform->setType('html', PARAM_RAW); $mform->addRule('html', null, 'required'); // Add the submit buttons.