New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable builtin spellchecker #20897
Conversation
* chore: add code required to use chromes spellchecker * chore: fix linting * chore: manifests needs buildflags now * chore: add dictionarySuggestions to the context menu event when the spellchecker is active * chore: enable by default for windows builds * chore: add patch to remove incognito usage in the spellchecker * chore: add dependencies on spellcheck common and flags * chore: conditionally include spell check panel impl * chore: fix deps for spellcheck feature flags * chore: add patch for electron resources * chore: add dependency on //components/language/core/browser * chore: patches to make hunspell work on windows * build: collect hunspell dictionaries into a zip file and publish * chore: clean up patches * chore: add docs and set spell checker url method * chore: fix error handling * chore: fix hash logic * build: update hunspell filename generator * fix: default spellchecker list to the current system locale if we can * docs: document the language getter * chore: patch IDS_ resources for linux builds * feat: add spellcheck webpref flag to disable the builtin spellchecker * chore: fix docs typo * chore: clean up spellchecker impl as per feedback * remove unneeded deps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM... just a small nit on the docs
Release Notes Persisted
|
Hi @MarshallOfSound, Thanks for this PR. I'm a little confused on how this new built-in spellchecker works This is what I'm doing (Windows 10) Misspelled words are not highlighted with red lines. Can you please clear up how to use this spellchecker? |
Adding to @aabuhijleh . Do we need to install something on windows in order for it to work? |
@aabuhijleh @tallev266 - you were probably affected by this issue: #21798 but I can confirm that in the stable release of Electron v.8.0 spellchecker is working fine :) |
not working in stable 8.0.0 |
I am trying to upgrade my application to use Electron 8.0.0, The spellchecker does not seem to work. I do not see any spelling errors being marked. |
Okay, I love the fact that we have native spellchecker but I honestly have no clue how to get suggestions from it. I see the red underline on an incorrect word and naturally, I right-click it to see the context menu. No context menu appears. So my question is: Do we actually build a suggestion menu (can we?) or is there a built-in tool to bring up a context menu on right-clicking the spellchecked word. EDIT: Found it. My bad. the context menu DOES have an option to see misspelled words and suggestions. Here is the link for anyone else who wishes to pair it with your spellchecker. |
Backport of #20692
Only difference is the default value of the
spellcheck
webPreference isfalse
(disabled by default in 8-x-y as per discussion)Notes: Added support for the built-in spellchecker. We will use the OS spellchecker on macOS and hunspell on all other platforms.