From 38ae91ae2325d675a6f73289c0d4388d97c87d03 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 15 Feb 2026 23:35:40 -0600 Subject: [PATCH] refac --- src/lib/components/common/RichTextInput.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index 28221cd39..aea8ca719 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -691,7 +691,12 @@ element: element, extensions: [ StarterKit.configure({ - link: link + link: link, + // When rich text is off, disable Strike from StarterKit so we can + // re-add it below without its Mod-Shift-s shortcut (which conflicts + // with the Toggle Sidebar shortcut). When rich text is on, the user + // can undo strikethrough via the toolbar, so the shortcut is fine. + ...(richText ? {} : { strike: false }) }), ...(dragHandle ? [ListItemDragHandle] : []), Placeholder.configure({ placeholder: () => _placeholder, showOnlyWhenEditable: false }),