You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Renderer spellcheck API does not work on Windows #28404
I have tried adding session.defaultSession.setSpellCheckerLanguages(['en-US']) in my fiddle right before new BrowserWindow but I can still repro this issue.
An observation is that Electron correctly spellchecks the textarea with English, without having to set the language, but the API still returns false on the identically misspelled word.
Activity
lishid commentedon Mar 26, 2021
This comment might be related:
https://github.com/electron/electron/pull/25060/files#r496156887
ckerr commentedon Mar 29, 2021
Confirmed works on Linux. Tested with Electron 12.0.2 on Ubuntu 20.10.
Electron fiddle test: https://gist.github.com/ckerr/91b84f22d5beeef1506174b495720dd7
codebytere commentedon Mar 31, 2021
This is because by default the spellchecker only automatically detects language on macOS - see:
electron/docs/api/session.md
Lines 691 to 699 in 45c4dd5
If you add
session.defaultSession.setSpellCheckerLanguages(['en-US'])to your Fiddle before you create the window the test will pass.lishid commentedon Mar 31, 2021
I have tried adding
session.defaultSession.setSpellCheckerLanguages(['en-US'])in my fiddle right beforenew BrowserWindowbut I can still repro this issue.An observation is that Electron correctly spellchecks the textarea with English, without having to set the language, but the API still returns
falseon the identically misspelled word.lishid commentedon Apr 2, 2021
@codebytere Can you verify/repro this on Windows?
lishid commentedon Apr 8, 2021
@ckerr Any chance we can have this re-opened?