From 5379f7d670f271931fdce1d18de7dc530b90877d Mon Sep 17 00:00:00 2001 From: Roberto Guido Date: Mon, 27 Jul 2026 01:51:48 +0200 Subject: [PATCH] fix: disabling shortcut for links when not editing html Signed-off-by: Roberto Guido --- src/components/TextEditor.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/TextEditor.vue b/src/components/TextEditor.vue index a3f01b994b..87dba0d102 100644 --- a/src/components/TextEditor.vue +++ b/src/components/TextEditor.vue @@ -619,6 +619,11 @@ export default { editor.execute('heading', { value: 'heading3' }) cancel() }) + } else { + const linkCommand = editor.commands.get('link') + if (linkCommand) { + linkCommand.forceDisabled('linking') + } } this.bus.on('append-to-body-at-cursor', this.appendToBodyAtCursor)