Disable spell checking globally

#759
This commit is contained in:
Artur Beljajev 2018-03-18 01:27:16 +02:00
parent 3704345d02
commit f2e8bebab2
5 changed files with 17 additions and 4 deletions

View file

@ -0,0 +1,12 @@
(function() {
function disableSpellCheck() {
let selector = 'input[type=text], textarea';
let textFields = document.querySelectorAll(selector);
for (let field of textFields) {
field.spellcheck = false;
}
}
disableSpellCheck();
})();