how to make the atto editor content wider in a multiplechoice qtype

how to make the atto editor content wider in a multiplechoice qtype

by Miki Alliel -
Number of replies: 3
Picture of Translators

Hello

This is a very annoying issue for the teachers:
the box where you can put the content of the answer in a multiple-choice  is very thin (small).

How can we make it be larger bigger by default?

Appreciate any help

THANK you


see image (yellow sign)


Attachment content-editor-multiplechoice.PNG
Average of ratings: -
In reply to Miki Alliel

Re: how to make the atto editor content wider in a multiplechoice qtype

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers

I don't know how to change its default size.  From your screenshots, it appears that you know that one can manually adjust its size by dragging down on the corner.  Somehow, I think that this size is varied by the type of activity where it is being used since more space is provided to ATTO in a forum.  This could be good news.  Maybe one can add some custom CSS to force its size in the Quiz activity.

In reply to Rick Jerz

Re: how to make the atto editor content wider in a multiplechoice qtype

by Miki Alliel -
Picture of Translators

Thank you for your reply/

Do you know what is the css  custom code for changing the default so it will be larger by default for any multiple choice answer?

Thank you

In reply to Rick Jerz

Re: how to make the atto editor content wider in a multiplechoice qtype

by Miki Alliel -
Picture of Translators

I've succeed to solve it by adding the number 3 (it can be anything else too) here :


question/type/multichoice/edit_multichoice_form.php

around row 70:

 $repeated[] = $mform->createElement('editor', 'answer',

               $label, array('rows' => 3), $this->editoroptions);

.......
......

$repeated[] = $mform->createElement('editor', 'feedback',

               get_string('feedback', 'question'), array('rows' => 3), $this->editoroptions);




Average of ratings: Useful (1)