[w3c/editing] spellching - how to give JS devs more control (#166)

We have previously discussed the possibility of letting JS have more direct access to the bvrowser itnernal spell checker. We refrained from that due to security concerns because users may have added secret terms to their dictionaries.

Because JS editors do at least some of the DOM changes manually, the browser cannot know exactly which parts are still in need of spell checking and which parts have been spell checked already. 

Also, the language of the spell checker is set by the browser and not the editor, and this does not always make sense. For example, a JS editor may know that the language of a specific text is French, but the browser still applies the user's standard dictionary English to the text and on a small mobile device it may be difficult even for the user to change the language used by the spell checker.

What is needed: 

1. Some way for JavaScript to either execute spell checking itself using the dictionary resources present in the browser (possibly without any user customizations), OR 

2. a way for JavaScript to communicate to the browser that a specific range of text either has been spell checked already OR that it is not in need of spell checking. 

Additionally, it would be good if the JavaScript could tell the browser which spellchecker language to use on a specific range of text. Lower priority, but still nice to have, would be for the JavaScript to be able to tell the browser that certain terms are fiedl-related terms and therefore not in need of spell checking. 

Whatever we come up with should be extendable to also be able to cover grammar checkers some time in the future.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/166

Received on Friday, 23 June 2017 01:18:34 UTC