Note: You are currently viewing documentation for Moodle 4.0. Up-to-date documentation for the latest stable version of Moodle may be available here: Embedded Answers (Cloze) question type.

Talk:Embedded Answers (Cloze) question type: Difference between revisions

From MoodleDocs
No edit summary
No edit summary
Line 1: Line 1:
Re: Note: The equal sign (=) doesn't seem to work with SHORTANSWER.
== The equal sign (=) doesn't seem to work with SHORTANSWER. ==
 
On occasion, the Atto editor can insert HTML code into the text between { and } with the result that the Cloze question does not work as expected.
 
For example, if you have the following:
 
Moodle is the {:SA:=best~=leading} LMS.
 
the HTML code must contain exactly {:SA:=best~=leading}. However, it is possible that the Atto editor has inserted an HTML tag, for example a <span> tag as follows:
 
Moodle is the {:SA:=<span>best<span>~=<span>leading</span>} LMS.


Most people work with the HTML Editor as a WYSIWYG editor and some code gets inserted. Compare:


'''Not working:''' (from the code view/HTML view in the editor)
'''Not working:''' (from the code view/HTML view in the editor)
Line 9: Line 18:
'''Working:''' (after cleaning up the span tags)
'''Working:''' (after cleaning up the span tags)


Present career {:SA:=pop star~=famous pop star} and Present career {:SA:=pop star~%100%famous pop star}
Present career {:SA:=pop star~=famous pop star}
 
'''Solution:''' go into HTML view and clean up any tags in the shortcode between the start { and end }
'''Solution:''' go into HTML view and clean up any tags in the shortcode between the start { and end }

Revision as of 20:48, 4 February 2020

The equal sign (=) doesn't seem to work with SHORTANSWER.

On occasion, the Atto editor can insert HTML code into the text between { and } with the result that the Cloze question does not work as expected.

For example, if you have the following:

Moodle is the {:SA:=best~=leading} LMS.

the HTML code must contain exactly {:SA:=best~=leading}. However, it is possible that the Atto editor has inserted an HTML tag, for example a <span> tag as follows:

Moodle is the {:SA:=<span>best<span>~=<span>leading</span>} LMS.


Not working: (from the code view/HTML view in the editor)

Present career {:SA:=pop star~<span>=</span>famous pop star} or Present career {:SA:=pop star~<span>%100%</span>famous pop star}

Working: (after cleaning up the span tags)

Present career {:SA:=pop star~=famous pop star} Solution: go into HTML view and clean up any tags in the shortcode between the start { and end }