From 97a18775e023fb9812cfa55e82853e1397ebb71d Mon Sep 17 00:00:00 2001 From: Adrien Foulon <6115458+Tofandel@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:17:44 +0100 Subject: [PATCH] Disable heading extension if it's not in the toolbar Fix #2489 --- frontend/js/components/WysiwygTiptap.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/js/components/WysiwygTiptap.vue b/frontend/js/components/WysiwygTiptap.vue index ba3b85b1b..433d53af9 100755 --- a/frontend/js/components/WysiwygTiptap.vue +++ b/frontend/js/components/WysiwygTiptap.vue @@ -630,6 +630,7 @@ code: this.toolbar.code ?? false, codeBlock: this.toolbar.codeBlock ?? false, horizontalRule: this.toolbar.hr ?? false, + heading: this.toolbar.header ? { levels: this.headingOptions } : false, })) this.editor = new Editor({