From ef7c23232d883b8358462ef9113c1e34b32739d5 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Tue, 10 May 2022 16:05:32 +0800 Subject: [PATCH] tiptap: hide text bubble menu in HorizontalRule --- packages/client/src/tiptap/editor/menus/text/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client/src/tiptap/editor/menus/text/index.tsx b/packages/client/src/tiptap/editor/menus/text/index.tsx index 86a52306..b9ac51ad 100644 --- a/packages/client/src/tiptap/editor/menus/text/index.tsx +++ b/packages/client/src/tiptap/editor/menus/text/index.tsx @@ -25,6 +25,7 @@ import { TableOfContents } from 'tiptap/core/extensions/table-of-contents'; import { Katex } from 'tiptap/core/extensions/katex'; import { DocumentReference } from 'tiptap/core/extensions/document-reference'; import { DocumentChildren } from 'tiptap/core/extensions/document-children'; +import { HorizontalRule } from 'tiptap/core/extensions/horizontal-rule'; const OTHER_BUBBLE_MENU_TYPES = [ Title.name, @@ -40,6 +41,7 @@ const OTHER_BUBBLE_MENU_TYPES = [ DocumentReference.name, DocumentChildren.name, Katex.name, + HorizontalRule.name, ]; export const Text = ({ editor }) => {