Usage example: var input = document.querySelector('input') Void removeSpellcheckRange(SpellcheckRange range) void addSpellcheckRange( unsigned long start Hironori Bono (a software engineer for Google Chrome) proposed an API around 2011 and some related bug rapports and a patch that was(/is still?) in Chrome. Now let's not confuse Chrome's SpellCheck API (above) with Chrome/Webkit's SpellCheck API (hu? say what?): because approximately 20-30% of Spellcheck bugs-rapports were regarding unsupported languages. The point? Helping the community create custom dictionaries for Zulu, Klingon, etc. ) // returns int indicating success or an error code in loading the dictionary. , dictionaryFormat // enumerated string [ "hunspell" (concatentation of. More importantly, it has only one method called 'loadDictionary': loadDictionary( myDictionaryFile // string path or URL It is unlikely that spellchecking will become part of the web platform. There is a Chromium-specific Spellcheck API Proposal (from dec 2012).Ĭould this API be part of the web platform? Q: if browser "Google Chrome"/"Chromium" exposes a spellcheck-API that you can interact with through the use of javascript in a common webpageĪ: No, not really (at least not in the way you'd want). Javascript based spell-checkers for web applicationsĪs the question seems a bit broad and open to interpretation (especially with the current bounty-'requirements'), I'll start by explaining how I interpret it and try to answer the subquestions in the process (Q/A style).javascript spell checker recommendations.Related Stack Overflow questions include: There are other Stack Overflow questions on this topic or you can search for yourself. You can either code this yourself or use a third party library. How does one detect a spelling mistake inside a textarea in JavaScript? The change event also doesn't provide spell-check information. No, nor does the contextmenu event provide anything useful for this purpose: it has no spell-check information and you cannot read the list of context menu items (which may contain spelling suggestions). There is no open API for Google's dictionary. You can download but not access Chrome's built in dictionary.There was once an unofficial Google spell-check API that has disappeared.To answer more fully, I'll also mention related issues: How do I access Chrome's spell-check suggestions for a misspelled word?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |