Cloze - textbox of embedded (shortanswers) answers covers entire line

Cloze - textbox of embedded (shortanswers) answers covers entire line

by Christoph Pimmer -
Number of replies: 7

Dear all

We have a problem concerning the length of the textbox of the short answer questions. The textbox of embedded answers (shortanswers) automatically covers the entire line (please see the image and the code below). This negatively impacts the readability of the text.

Do you have any advice? We are using Moodle 2.7 and this occurs with internet explorer and firefox

Thank you and kind regards

Christoph


example

A: We 1.{1:SHORTANSWER:%100%are recruiting#~%100%'re recruiting#} (recruit) a new assistant for one of our top managers. I 2.{1:SHORTANSWER:%100%think#} (think) you would be suitable for the position.

B: Really? What would I have to do?

A: The job 3.{1:SHORTANSWER:%100%involves#} (involve) coordinating all of the manager's activities. The assistant also 4.{1:SHORTANSWER:%100%gives#} (give) advice on various topics when the manager 5. {1:SHORTANSWER:%100%needs#} (need) it.

Average of ratings: -
In reply to Christoph Pimmer

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Have you had this issue with any other questions? Was the text typed directly into the question box or was it copied in?  Could you view, copy and post the HTML for this question, I am curious if there is anything hidden within your question text.

In reply to Marcus Green

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Christoph Pimmer -

Thanks for the quick reply. We copied the text from a pdf and there were indeed a lot of html tags. However, even after removing those the effects seems to be the same. Please find the html example below. For the example I've created a new question and edited the html code directly, but it is still covering the entire line. (I'm currently trying to find out the theme that we use).

Thanks! Christoph



screenshot

quizexample




In reply to Christoph Pimmer

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

"We copied the text from a pdf..."

You should never ever do that without "cleaning" your text before pasting it. I recommend a nice utility which will "clean" any text, I use it all the time. It's called "Puretext".

Joseph

In reply to Christoph Pimmer

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Which theme are you using?

Can you reproduce this problem on http://qa.moodle.net ?

In reply to Tim Hunt

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

@Tim,

I already asked Christoph which theme he was using, but got no answer.

In reply to Joseph Rézeau

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Christoph Pimmer -

Thanks Joseph and Tim,

The problem occurs also when I create a new question without using copy and paste.

However, I could not reproduce the problem here: http://qa.moodle.net  Everything seems to work well. But the theme looks different than the one our university is using. Regarding "our" theme I've inquired with our IT services. I hope I'll have an answer by Monday.

Thanks! Christoph

In reply to Christoph Pimmer

Re: Cloze - textbox of embedded (shortanswers) answers covers entire line

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

@Christoph,

I do not see this problem on my moodle 2.7 test site, when I copy-paste your Cloze question. Which visual theme are you using? I'm using the "default" Clean theme.

screenshot #1

Joseph

PS.- I have removed the numbers, which "get in the way". If you still need them, I suggest you put them next to the verb to be used, e.g. We ____ (1. recruit) etc.