Skip to content

Commit 38ae91a

Browse files
committed
refac
1 parent 88401e9 commit 38ae91a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/lib/components/common/RichTextInput.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,12 @@
691691
element: element,
692692
extensions: [
693693
StarterKit.configure({
694-
link: link
694+
link: link,
695+
// When rich text is off, disable Strike from StarterKit so we can
696+
// re-add it below without its Mod-Shift-s shortcut (which conflicts
697+
// with the Toggle Sidebar shortcut). When rich text is on, the user
698+
// can undo strikethrough via the toolbar, so the shortcut is fine.
699+
...(richText ? {} : { strike: false })
695700
}),
696701
...(dragHandle ? [ListItemDragHandle] : []),
697702
Placeholder.configure({ placeholder: () => _placeholder, showOnlyWhenEditable: false }),

0 commit comments

Comments
 (0)