From 0642ead8d84e965b8fb30f6b8b1cab5965ad75b3 Mon Sep 17 00:00:00 2001 From: Mark Tomlinson Date: Sun, 26 Oct 2025 16:07:33 +1100 Subject: [PATCH] Disable spell check and auto-correction for technical content blocks --- components/Blocks/CodeBlock.tsx | 4 ++++ components/Blocks/MathBlock.tsx | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/components/Blocks/CodeBlock.tsx b/components/Blocks/CodeBlock.tsx index 0488d4f3..bfadda5d 100644 --- a/components/Blocks/CodeBlock.tsx +++ b/components/Blocks/CodeBlock.tsx @@ -123,6 +123,10 @@ export function CodeBlock(props: BlockProps) { data-entityid={props.entityID} id={elementId.block(props.entityID).input} block={props} + spellCheck={false} + autoCapitalize="none" + autoComplete="off" + autoCorrect="off" className="codeBlockEditor whitespace-nowrap! overflow-auto! font-mono p-2" value={content?.data.value} onChange={async (e) => { diff --git a/components/Blocks/MathBlock.tsx b/components/Blocks/MathBlock.tsx index fbe58de8..4f8d1542 100644 --- a/components/Blocks/MathBlock.tsx +++ b/components/Blocks/MathBlock.tsx @@ -35,6 +35,10 @@ export function MathBlock(props: BlockProps) {