From 465d6fe5143fbebaef025e5595e71ac4e13c40b4 Mon Sep 17 00:00:00 2001 From: Jacob Leksan <63938553+jmleksan@users.noreply.github.com> Date: Fri, 24 Apr 2026 03:33:46 -0400 Subject: [PATCH] feat: enhance RichTextInput configuration to prevent duplicate extensions when rich text is enabled (#24009) --- src/lib/components/common/RichTextInput.svelte | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/lib/components/common/RichTextInput.svelte b/src/lib/components/common/RichTextInput.svelte index 8c4006d280..99fa025055 100644 --- a/src/lib/components/common/RichTextInput.svelte +++ b/src/lib/components/common/RichTextInput.svelte @@ -737,6 +737,17 @@ StarterKit.configure({ link: link, code: false, // Disabled in favor of FixedCode (see workaround above) + // When rich text is on, ListKit + CodeBlockLowlight provide these. + // Disable StarterKit's equivalents to avoid duplicate extension names. + ...(richText + ? { + codeBlock: false, + bulletList: false, + orderedList: false, + listItem: false, + listKeymap: false + } + : {}), // 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