diff --git a/course/moodleform_mod.php b/course/moodleform_mod.php index c8378967f61..dd5652a9e2e 100644 --- a/course/moodleform_mod.php +++ b/course/moodleform_mod.php @@ -806,7 +806,8 @@ abstract class moodleform_mod extends moodleform { $mform = $this->_form; $label = is_null($customlabel) ? get_string('moduleintro') : $customlabel; - $mform->addElement('editor', 'introeditor', $label, null, array('maxfiles'=>EDITOR_UNLIMITED_FILES, 'noclean'=>true, 'context'=>$this->context)); + $mform->addElement('editor', 'introeditor', $label, array('rows' => 3), array('maxfiles' => EDITOR_UNLIMITED_FILES, + 'noclean' => true, 'context' => $this->context, 'collapsed' => true)); $mform->setType('introeditor', PARAM_RAW); // no XSS prevention here, users must be trusted if ($required) { $mform->addRule('introeditor', get_string('required'), 'required', null, 'client');