fix: do not show bubble menu in code block

This commit is contained in:
fantasticit 2022-03-31 23:07:33 +08:00
parent 468709cee0
commit 4ea4d2859b
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import { Link } from '../extensions/link';
import { Attachment } from '../extensions/attachment'; import { Attachment } from '../extensions/attachment';
import { Image } from '../extensions/image'; import { Image } from '../extensions/image';
import { Banner } from '../extensions/banner'; import { Banner } from '../extensions/banner';
import { CodeBlock } from '../extensions/code-block';
import { Status } from '../extensions/status'; import { Status } from '../extensions/status';
import { HorizontalRule } from '../extensions/horizontal-rule'; import { HorizontalRule } from '../extensions/horizontal-rule';
import { Iframe } from '../extensions/iframe'; import { Iframe } from '../extensions/iframe';
@ -24,6 +25,7 @@ const OTHER_BUBBLE_MENU_TYPES = [
Attachment.name, Attachment.name,
Image.name, Image.name,
Banner.name, Banner.name,
CodeBlock.name,
Status.name, Status.name,
Iframe.name, Iframe.name,
Mind.name, Mind.name,