Replace text field with HTML editor

This commit is contained in:
Kumi 2021-11-24 09:03:55 +01:00
parent 9b34c038ec
commit 428deb1d08

View file

@ -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.