MDL-78369 Multiple choice: Increase Choice and feedback boxes size

This commit is contained in:
Anupama Sarjoshi 2023-05-26 17:54:48 +01:00
parent 8c989335be
commit cc2512d450

View file

@ -80,11 +80,11 @@ class qtype_multichoice_edit_form extends question_edit_form {
&$repeatedoptions, &$answersoption) { &$repeatedoptions, &$answersoption) {
$repeated = array(); $repeated = array();
$repeated[] = $mform->createElement('editor', 'answer', $repeated[] = $mform->createElement('editor', 'answer',
$label, array('rows' => 1), $this->editoroptions); $label, ['rows' => 2], $this->editoroptions);
$repeated[] = $mform->createElement('select', 'fraction', $repeated[] = $mform->createElement('select', 'fraction',
get_string('gradenoun'), $gradeoptions); get_string('gradenoun'), $gradeoptions);
$repeated[] = $mform->createElement('editor', 'feedback', $repeated[] = $mform->createElement('editor', 'feedback',
get_string('feedback', 'question'), array('rows' => 1), $this->editoroptions); get_string('feedback', 'question'), ['rows' => 2], $this->editoroptions);
$repeatedoptions['answer']['type'] = PARAM_RAW; $repeatedoptions['answer']['type'] = PARAM_RAW;
$repeatedoptions['fraction']['default'] = 0; $repeatedoptions['fraction']['default'] = 0;
$answersoption = 'answers'; $answersoption = 'answers';