Skip to content

Commit

Permalink
Add support for spellchecking
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelmeuli committed Feb 6, 2020
1 parent 966292c commit 7cf7f2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async function createWindow(): Promise<BrowserWindow> {
titleBarStyle: "hiddenInset",
webPreferences: {
nodeIntegration: true,
spellcheck: true,
},
});
win.on("ready-to-show", (): void => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ export default class Editor extends PureComponent<Props, State> {
onBlur={this.saveEntry}
onChange={this.onTitleChange}
placeholder={translations["add-a-title"]}
spellCheck
/>
</div>
<div className="editor-text-wrapper">
Expand All @@ -193,6 +194,7 @@ export default class Editor extends PureComponent<Props, State> {
}}
placeholder={isOl || isUl ? "" : `${translations["write-something"]}…`}
plugins={plugins}
spellCheck
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export default class SearchBar extends PureComponent<Props, State> {
type="search"
className="search-input"
placeholder={`${translations.search}…`}
spellCheck={false}
value={newSearchKey}
onChange={this.onChange}
/>
Expand Down

0 comments on commit 7cf7f2e

Please sign in to comment.