MDL-18910 full support for module intro editor with embedded images

This commit is contained in:
skodak 2009-04-22 04:31:54 +00:00
parent 26c9ecb05f
commit b4950d9649
4 changed files with 4 additions and 22 deletions

View file

@ -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));