Replace text field with HTML editor
This commit is contained in:
parent
9b34c038ec
commit
428deb1d08
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue