Drag and Drop - Text not wrapping in text box for choices

Re: Drag and Drop - Text not wrapping in text box for choices

by Liam Tedders -
Number of replies: 2
Thanks Dominique. I'll have a go and let you know the outcome.
Happy holidays!
In reply to Liam Tedders

Re: Drag and Drop - Text not wrapping in text box for choices

by Dominique Bauer -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Hello Alina,

It's better to ask questions on the forum than ask me, because if I do not have the answer, someone else can. smile

You wrote:

Hi Dominique! I saw your response on this forum and I was wondering if you found another way to resolve the issue.

I looked again at the code of the Choices. It appears that all spaces are replaced by non-breaking spaces ( ) and that the height of the lines is proportional to the height of the boxes. It is easy to replace all &nbsp with normal spaces, but I have not been able to adjust the height of lines. It seems that the developer of the question deliberately limited the choice field to a single line, I do not know why.

My efforts to adjust the html code on the user side, so that the choices accept paragraphs, seem to have failed. However, I think the server-side PHP code could perhaps be modified without too much difficulty. cool

Kind regards.

Average of ratings: Useful (1)
In reply to Dominique Bauer

Re: Drag and Drop - Text not wrapping in text box for choices

by Alina Badilla -
Thank you, Dominique! We will give it a try smile