From 6ae3a6451442d6786c72bb13b9d074cb88405f06 Mon Sep 17 00:00:00 2001 From: jia wei Date: Tue, 13 Aug 2024 10:36:59 +0800 Subject: [PATCH] feat(editor): disable spellcheck (#2186) 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. --- src/client/theme-default/slots/SourceCodeEditor/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/theme-default/slots/SourceCodeEditor/index.tsx b/src/client/theme-default/slots/SourceCodeEditor/index.tsx index 132a6960c..74737655b 100644 --- a/src/client/theme-default/slots/SourceCodeEditor/index.tsx +++ b/src/client/theme-default/slots/SourceCodeEditor/index.tsx @@ -89,6 +89,7 @@ const SourceCodeEditor: FC = (props) => { autoComplete="off" autoCorrect="off" autoSave="off" + spellcheck="false" /> ) }