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.
In reply to Rohit Agarwal
Re: Add spellcheck=false to a quiz form or textbox
Dominique Bauer - මගින්
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.
In reply to Dominique Bauer
Re: Add spellcheck=false to a quiz form or textbox
Dominique Bauer - මගින්
You can try spellcheck="false" at https://moodleformulas.org/course/view.php?id=80§ion=3 ↗.
In reply to Dominique Bauer
Re: Add spellcheck=false to a quiz form or textbox
Rohit Agarwal - මගින්
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.
In reply to Rohit Agarwal
Re: Add spellcheck=false to a quiz form or textbox
Dominique Bauer - මගින්
Rohit, Thank you for your feedback. It should work fine now.
In reply to Colin Matheson
Re: Add spellcheck=false to a quiz form or textbox
Chris Kenniburg - මගින්
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
In reply to Chris Kenniburg
Re: Add spellcheck=false to a quiz form or textbox
Rohit Agarwal - මගින්
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...
In reply to Chris Kenniburg
Re: Add spellcheck=false to a quiz form or textbox
Pedro Caldeira - මගින්
I would like to try it, but can't find this file on my installation 🙁
In reply to Pedro Caldeira
Re: Add spellcheck=false to a quiz form or textbox
Pedro Caldeira - මගින්
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.