diff --git a/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts b/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts index 2673c81bd..3502bb9df 100644 --- a/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts +++ b/gui/src/components/mainInput/TipTapEditor/extensions/SlashCommand.ts @@ -15,6 +15,9 @@ export const SlashCommand = Node.create({ addOptions() { return { suggestion: { + allow: ({ editor }) => + // the first character is "/". we want to avoid slash commands when there is a space after it + editor.getText().at(1) !== " ", char: "/", pluginKey: new PluginKey(this.name), startOfLine: true,