Skip to content

Commit

Permalink
feat(editor): disable spellcheck (#2186)
Browse files Browse the repository at this point in the history
When editing, if the browser has enabled spell checking, red wavy lines may appear on some words, which should be unnecessary. Simply disable it. If there is a need later, consider passing parameters to enable it.
  • Loading branch information
jiawei397 authored Aug 13, 2024
1 parent 3d9067b commit 6ae3a64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/theme-default/slots/SourceCodeEditor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const SourceCodeEditor: FC<ISourceCodeEditorProps> = (props) => {
autoComplete="off"
autoCorrect="off"
autoSave="off"
spellcheck="false"

Check failure on line 92 in src/client/theme-default/slots/SourceCodeEditor/index.tsx

View workflow job for this annotation

GitHub Actions / build (18.x, ubuntu-latest)

Unknown property 'spellcheck' found, use 'spellCheck' instead

Check failure on line 92 in src/client/theme-default/slots/SourceCodeEditor/index.tsx

View workflow job for this annotation

GitHub Actions / build (14.x, ubuntu-latest)

Unknown property 'spellcheck' found, use 'spellCheck' instead

Check failure on line 92 in src/client/theme-default/slots/SourceCodeEditor/index.tsx

View workflow job for this annotation

GitHub Actions / build (16.x, ubuntu-latest)

Unknown property 'spellcheck' found, use 'spellCheck' instead

Check failure on line 92 in src/client/theme-default/slots/SourceCodeEditor/index.tsx

View workflow job for this annotation

GitHub Actions / build (14.x, windows-latest)

Unknown property 'spellcheck' found, use 'spellCheck' instead

Check failure on line 92 in src/client/theme-default/slots/SourceCodeEditor/index.tsx

View workflow job for this annotation

GitHub Actions / build (18.x, windows-latest)

Unknown property 'spellcheck' found, use 'spellCheck' instead

Check failure on line 92 in src/client/theme-default/slots/SourceCodeEditor/index.tsx

View workflow job for this annotation

GitHub Actions / build (16.x, windows-latest)

Unknown property 'spellcheck' found, use 'spellCheck' instead
/>
)
}
Expand Down

0 comments on commit 6ae3a64

Please sign in to comment.