Details

Improvement

Resolution: Unresolved

Minor

None

4.2.1

MOODLE_402_STABLE

MDL78662master

Hide
Scenario 1: Preview question page
Setup :
 Go to Site administration > Filter > Manage filters
 Set Mathjax Active "On" and Apply to "Content and headings"
Drag and drop into text question type:
 Tick on the MathJax checkbox and press Save Changes to enable the filter.
 Create a Dragdrop intotext question with a Mathjax equation in the answer or import this question to question bank questionsTHCQ8 Drag Drop into text202311240305.xml^{}
 Preview the question in the question bank
 We should see the answer with the mathjax equation displayed
 Dragdrop the item with mathjax to answer
Expected:
 The system supports MathJax notation and recognizes the equation during and after attempting
 The dragdrop item with Mathjax has the same size as other items in the same group.
 Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape)
 It should work as a normal item. We can drag it to answer.
Drag and drop markers question type:
 Tick on the MathJax checkbox and press Save Changes to enable the filter.
 Create a Drag and drop markers question with a Mathjax equation in the answer or import this question to the question bank questionsTHCQ6 Drag Drop Marker202311240303.xml^{}
 Preview the question in the question bank
 We should see the dragdrop with the mathjax equation displayed
 Dragdrop the item with mathjax to answer
Expected:
 The system supports MathJax notation and recognizes the equation during and after attempting
 The dragdrop item with Mathjax has the same size as other items in the same group.
 Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape)
 It should work as a normal item. We can drag it to answer.
Drag and drop onto image question type:
 Tick on the MathJax checkbox and press Save Changes to enable the filter.
 Create a Drag and drop onto image question with a Mathjax equation in the answer(to allow Mathjax equations, we need to change the Drag item type to "Draggable text" or import this question to the question bank questionsTHCQ09 DandD onto images202311240305.xml^{}
 Preview the question in the question bank
 We should see the dragdrop with the mathjax equation displayed
 Dragdrop the item with mathjax to answer
Expected:
 The system supports MathJax notation and recognizes the equation during and after attempting
 The dragdrop item with Mathjax has the same size as other items in the same group.
 Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape)
 It should work as a normal item. We can drag it to answer.
Scenario 2: Add those questions above to a quiz
 Attempt the quiz
 Answer the question by dragdrop items.
Expected:
 The system supports MathJax notation and recognizes the equation during and after attempting
 The dragdrop item with Mathjax has the same size as other items in the same group.
 Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape)
 It should work as a normal item. We can drag it to answer.
Scenario 3: Multilang filter:
 Enable the multilang filter for content and headings.
 Install at least one other language, to make test cases work, you need Russian.
 Have the site language set to English.
 Install the https://moodle.org/plugins/filter_multilang2 plugin.
 In a course, go to question bank and import the attached file [^questionsquiz1MDL61286202212141556.xml].
Check preview
 In the question bank go to the new imported category MDL61286 that contains the imported questions.
 In the action list select preview on the first question.
 In the peview window check that you only see the labels in English.
 Drag and drop the correct answers into the spaces and click "Submit and finish" button.
 You should see the message "Your answer is correct."
 Open the Preview section and click the button "Start again with these options".
 When the page has reloaded edit the URL field and add &lang=ru at the end of that URL and hit enter.
 In the peview window check that you only see the labels in Russian.
 Drag and drop the correct answers into the spaces and click "Отправить и завершить" button.
 You should see the message "Your answer is correct."
 Edit the URL field and add &lang=en at the end of that URL and hit enter.
 You see again the submitted data in English. Click the button "Close preview".
 Go back to step 2 and continue with the next question.
ShowScenario 1: Preview question page Setup : Go to Site administration > Filter > Manage filters Set Mathjax Active "On" and Apply to "Content and headings" Drag and drop into text question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Dragdrop intotext question with a Mathjax equation in the answer or import this question to question bank questionsTHCQ8 Drag Drop into text202311240305.xml Preview the question in the question bank We should see the answer with the mathjax equation displayed Dragdrop the item with mathjax to answer Expected: The system supports MathJax notation and recognizes the equation during and after attempting The dragdrop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape) It should work as a normal item. We can drag it to answer. Drag and drop markers question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag and drop markers question with a Mathjax equation in the answer or import this question to the question bank questionsTHCQ6 Drag Drop Marker202311240303.xml Preview the question in the question bank We should see the dragdrop with the mathjax equation displayed Dragdrop the item with mathjax to answer Expected: The system supports MathJax notation and recognizes the equation during and after attempting The dragdrop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape) It should work as a normal item. We can drag it to answer. Drag and drop onto image question type: Tick on the MathJax checkbox and press Save Changes to enable the filter. Create a Drag and drop onto image question with a Mathjax equation in the answer(to allow Mathjax equations, we need to change the Drag item type to "Draggable text" or import this question to the question bank questionsTHCQ09 DandD onto images202311240305.xml Preview the question in the question bank We should see the dragdrop with the mathjax equation displayed Dragdrop the item with mathjax to answer Expected: The system supports MathJax notation and recognizes the equation during and after attempting The dragdrop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape) It should work as a normal item. We can drag it to answer. Scenario 2: Add those questions above to a quiz Attempt the quiz Answer the question by dragdrop items. Expected: The system supports MathJax notation and recognizes the equation during and after attempting The dragdrop item with Mathjax has the same size as other items in the same group. Mathjax equation is aligned in the dragdrop box (The equation is displayed in the middle of the dragdrop shape) It should work as a normal item. We can drag it to answer. Scenario 3: Multilang filter: Enable the multilang filter for content and headings. Install at least one other language, to make test cases work, you need Russian. Have the site language set to English. Install the https://moodle.org/plugins/filter_multilang2 plugin. In a course, go to question bank and import the attached file [^questionsquiz1MDL61286202212141556.xml] . Check preview In the question bank go to the new imported category MDL61286 that contains the imported questions. In the action list select preview on the first question. In the peview window check that you only see the labels in English. Drag and drop the correct answers into the spaces and click "Submit and finish" button. You should see the message "Your answer is correct." Open the Preview section and click the button "Start again with these options". When the page has reloaded edit the URL field and add &lang=ru at the end of that URL and hit enter. In the peview window check that you only see the labels in Russian. Drag and drop the correct answers into the spaces and click "Отправить и завершить" button. You should see the message "Your answer is correct." Edit the URL field and add &lang=en at the end of that URL and hit enter. You see again the submitted data in English. Click the button "Close preview". Go back to step 2 and continue with the next question.
Description
As a question author, I want to be able to use TeX in Drag and Drop Word into Sentence questions so that I have a greater range of question types when I use equations.
We don't support TeX currently  it displays the input as shown below.
Attachments
Issue Links
 blocks

MDL80489 Question\D&D: Help Text for Choices section
 Waiting for integration review
 duplicates

MDL72378 format_text is not applied to ddwtos choices, preventing MathJax and other filters being applied
 Closed
 is blocked by

MDL79042 Mathjax: Notify when we finish rendering all the equations
 Closed
 is duplicated by

MDL72378 format_text is not applied to ddwtos choices, preventing MathJax and other filters being applied
 Closed
 will help resolve

MDL61286 Dragdrop question types don't allow multilang filter
 Waiting for peer review