mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-18910 full support for module intro editor with embedded images
This commit is contained in:
parent
26c9ecb05f
commit
b4950d9649
4 changed files with 4 additions and 22 deletions
|
@ -19,10 +19,7 @@ class mod_data_mod_form extends moodleform_mod {
|
|||
}
|
||||
$mform->addRule('name', null, 'required', null, 'client');
|
||||
|
||||
$mform->addElement('htmleditor', 'intro', get_string('intro', 'data'));
|
||||
$mform->setType('intro', PARAM_RAW);
|
||||
$mform->addRule('intro', null, 'required', null, 'client');
|
||||
$mform->setHelpButton('intro', array('writing', 'questions', 'richtext2'), false, 'editorhelpbutton');
|
||||
$this->add_intro_editor(true, get_string('intro', 'data'));
|
||||
|
||||
$mform->addElement('date_selector', 'timeavailablefrom', get_string('availablefromdate', 'data'), array('optional'=>true));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue