Some teachers are requesting that the built in browser spellcheck be disabled for quizzes. I am trying to find out how to add the attribute to a quiz form or test quiz element. Any guidance would be appreciated.
I would also like to get a solution for the same.
So far, the only way I could make this work is to use Safe Exam Browser (SEB) that has the option to disable spell check. However, SEB doesn't seem to work for question types that require audio input, hence it didn't work for me.
It would be great if this can be a configuration in Moodle itself.
Hello Colin and Rohit,
Unless you are using an application that takes control of the browwer such as SEB, anyone, that is, teachers and computer savvy students, can change the spellcheck attribute since it is in the DOM.
So if you don't want to use SEB and don't worry too much about computer savvy students, you can add spellcheck = "false" to questions, quizzes or site with a single line of JavaScript code.
Unless you are using an application that takes control of the browwer such as SEB, anyone, that is, teachers and computer savvy students, can change the spellcheck attribute since it is in the DOM.
So if you don't want to use SEB and don't worry too much about computer savvy students, you can add spellcheck = "false" to questions, quizzes or site with a single line of JavaScript code.
You can try spellcheck="false" at https://moodleformulas.org/course/view.php?id=80§ion=3 ↗.
Hi Dominique, thanks for your response. I tried the link about but it doesn't seem to work. I am getting the red squiggly lines in both the scenarios. I am using Google Chrome.
Rohit, Thank you for your feedback. It should work fine now.
We did a render override in the Fordson theme to address this issue.
https://github.com/dbnschools/moodle-theme_fordson/blob/master/classes/qtype_shortanswer_renderer.php#L38
I believe you can download this file and place it in the same place in Boost and it will work. I highlighted the one line that we needed that whole file for.
Chris
https://github.com/dbnschools/moodle-theme_fordson/blob/master/classes/qtype_shortanswer_renderer.php#L38
I believe you can download this file and place it in the same place in Boost and it will work. I highlighted the one line that we needed that whole file for.
Chris
Thanks Chris, this worked for me! I will try to repeat this for essay type question as well.
Created an issue for it.
https://tracker.moodle.org/browse/MDL-71827
https://tracker.moodle.org/browse/MDL-71827
You created a duplicate of MDL-49297 (which was easlly found by searchnig for 'spellcheck').
I did search first, though clearly not well enough. Should have searched on your name...
I would like to try it, but can't find this file on my installation 🙁
this one: qtype_shortanswer_renderer.php i mean.
Chris was showing how they had overridden that renderer in their custom theme (see https://docs.moodle.org/dev/Overriding_a_renderer) to understand what is going on.