How to over-ride Chrome Browser spell check language using JQuery or JavaScript

312 views
Skip to first unread message

6233114 6233114

unread,
Dec 22, 2016, 2:30:11 AM12/22/16
to Chromium-discuss

I am using the latest Chrome browser Version 55.0.2883.87 m.


On input elements on a HTML web page, how do I over-ride the language of the Chrome browser spell checker using JQuery/JavaScript?


For example if the page is displayed in English (US) and the spell checker is set to English (US), how can I pass in the German language code of de, so that the text area will spell check the input (textarea, textbox, etc) with the German language and not the English (US) language?


I have tried adding the lang="de" to the input element with and without the spellcheck="true", but this has no effect.


I have tried adding the lang="de" to the form element (<from ... lang="de">) with and without the spellcheck="true", but this has no effect.


Here is an example HTML text area.


<textarea cols="40" id="id_objective_details" maxlength="1000" name="objective_details" rows="10" class="kmw-disabled keymanweb-font textArea01"></textarea>

PhistucK

unread,
Dec 22, 2016, 2:43:39 AM12/22/16
to 623...@gmail.com, Chromium-discuss
I think the spell checking language is decided according to the choices of the user (it they have selected to spell check for German and English, it will spell check only those) and according to heuristics that try to detect the language according to the typed characters.

So, basically, I do not think your can influence this much.


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Reply all
Reply to author
Forward
0 new messages