mirror of
https://github.com/fantasticit/think.git
synced 2026-09-01 15:10:55 +08:00
tiptap: hide text bubble menu in HorizontalRule
This commit is contained in:
@@ -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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user