tiptap: hide text bubble menu in HorizontalRule

pull/44/head
fantasticit 2022-05-10 16:05:32 +08:00
parent 2517a8b577
commit ef7c23232d
1 changed files with 2 additions and 0 deletions

View File

@ -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 }) => {