From 428deb1d088dc16090567d6507d6d070af207e4b Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Wed, 24 Nov 2021 09:03:55 +0100 Subject: [PATCH] Replace text field with HTML editor --- classes/edit_form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.