Skip to content

Commit

Permalink
fix readme to explain that spellcheck option is activated by default …
Browse files Browse the repository at this point in the history
…since Electron 9
  • Loading branch information
samuel-fringeli committed Aug 12, 2023
1 parent b150d0a commit 56297e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let mainWindow;

mainWindow = new BrowserWindow({
webPreferences: {
spellcheck: true
spellcheck: true // enabled by default since electron 9
}
});
})();
Expand Down Expand Up @@ -68,7 +68,7 @@ let mainWindow;

mainWindow = new BrowserWindow({
webPreferences: {
spellcheck: true
spellcheck: true // enabled by default since electron 9
}
});
})();
Expand Down Expand Up @@ -127,7 +127,7 @@ Default: `true`

Show the `Learn Spelling {selection}` menu item when right-clicking text.

Even if `true`, the `spellcheck` preference in browser window must still be enabled. It will also only show when right-clicking misspelled words.
Even if `true`, the `spellcheck` preference in browser window must still be enabled on Electron 8. For Electron 9 or higher, this is done by default. The spellcheck will also only show when right-clicking misspelled words.

#### showLookUpSelection

Expand Down Expand Up @@ -279,7 +279,7 @@ Even though you include an action, it will still only be shown/enabled when appr

`MenuItem` labels may contain the placeholder `{selection}` which will be replaced by the currently selected text as described in [`options.labels`](#labels).

To get spellchecking, “Correct Automatically”, and “Learn Spelling” in the menu, please enable the `spellcheck` preference in browser window: `new BrowserWindow({webPreferences: {spellcheck: true}})`
To get spellchecking, “Correct Automatically”, and “Learn Spelling” in the menu, please enable the `spellcheck` preference in browser window: `new BrowserWindow({webPreferences: {spellcheck: true}})` if you are on Electron 8.

The following options are ignored when `menu` is used:

Expand Down

0 comments on commit 56297e3

Please sign in to comment.