Add spellcheck=false to a quiz form or textbox

Add spellcheck=false to a quiz form or textbox

autor Colin Matheson -
Počet odpovědí: 13
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.
Průměr hodnocení: -
V odpovědi na Colin Matheson

Re: Add spellcheck=false to a quiz form or textbox

autor Rohit Agarwal -

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.



V odpovědi na Rohit Agarwal

Re: Add spellcheck=false to a quiz form or textbox

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers
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.
V odpovědi na Dominique Bauer

Re: Add spellcheck=false to a quiz form or textbox

autor Dominique Bauer -
Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers
V odpovědi na Dominique Bauer

Re: Add spellcheck=false to a quiz form or textbox

autor 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.
V odpovědi na Colin Matheson

Re: Add spellcheck=false to a quiz form or textbox

autor Chris Kenniburg -
Obrázek: Plugin developers
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
V odpovědi na Chris Kenniburg

Re: Add spellcheck=false to a quiz form or textbox

autor Rohit Agarwal -
Thanks Chris, this worked for me! I will try to repeat this for essay type question as well.
V odpovědi na Rohit Agarwal

Re: Add spellcheck=false to a quiz form or textbox

autor Marcus Green -
Obrázek: Core developers Obrázek: Particularly helpful Moodlers Obrázek: Plugin developers Obrázek: Testers
V odpovědi na Marcus Green

Re: Add spellcheck=false to a quiz form or textbox

autor Tim Hunt -
Obrázek: Core developers Obrázek: Documentation writers Obrázek: Particularly helpful Moodlers Obrázek: Peer reviewers Obrázek: Plugin developers
You created a duplicate of MDL-49297 (which was easlly found by searchnig for 'spellcheck').
V odpovědi na Chris Kenniburg

Re: Add spellcheck=false to a quiz form or textbox

autor Pedro Caldeira -

I would like to try it, but can't  find this file on my installation 🙁

V odpovědi na Pedro Caldeira

Re: Add spellcheck=false to a quiz form or textbox

autor Pedro Caldeira -
this one: qtype_shortanswer_renderer.php i mean.