MDL-38614 form: Reduce size of description field

This commit is contained in:
Frederic Massart 2013-03-21 15:52:10 +08:00 committed by Damyon Wiese
parent 00ec4acc8f
commit 1dcbdba62f

View File

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