MDL-20402 - update bulk user action messages from regular textarea to HTML editor.
This commit is contained in:
@@ -9,10 +9,9 @@ class user_message_form extends moodleform {
|
||||
$mform->addElement('header', 'general', get_string('message', 'message'));
|
||||
|
||||
|
||||
$mform->addElement('textarea', 'messagebody', get_string('messagebody'), array('rows'=>15, 'cols'=>60));
|
||||
$mform->addRule('messagebody', '', 'required', null, 'client');
|
||||
$mform->setHelpButton('messagebody', array('writing', 'reading', 'questions', 'richtext2'), false, 'editorhelpbutton');
|
||||
$mform->addElement('format', 'format', get_string('format'));
|
||||
$mform->addElement('editor', 'messagebody', get_string('messagebody'), null, null);
|
||||
$mform->addRule('messagebody', '', 'required', null, 'server');
|
||||
$mform->setHelpButton('messagebody', array('writing', 'reading', 'questions', 'richtext2'), false, 'editorhelpbutton');
|
||||
|
||||
$this->add_action_buttons();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user