MDL-40412 course Expanding the height of module description fields.

Expanding the default height of mod descriptions to 10, which gives
you 3 real lines once TinyMCE Loads.
This commit is contained in:
Eric Merrill
2013-07-01 10:24:38 -04:00
parent f0d37f4ac5
commit 7829d5d7c3
+1 -1
View File
@@ -820,7 +820,7 @@ abstract class moodleform_mod extends moodleform {
$mform = $this->_form;
$label = is_null($customlabel) ? get_string('moduleintro') : $customlabel;
$mform->addElement('editor', 'introeditor', $label, array('rows' => 3), array('maxfiles' => EDITOR_UNLIMITED_FILES,
$mform->addElement('editor', 'introeditor', $label, array('rows' => 10), 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) {