From c5adad8b37a76661dba99615e7da6fc948cb8199 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Sun, 3 Apr 2022 20:21:36 +0800 Subject: [PATCH] feat: add banner menu --- packages/client/src/tiptap/menubar.tsx | 2 + .../client/src/tiptap/menus/banner/bubble.tsx | 106 ++++++++++++++++++ .../client/src/tiptap/menus/banner/index.tsx | 15 +++ 3 files changed, 123 insertions(+) create mode 100644 packages/client/src/tiptap/menus/banner/bubble.tsx create mode 100644 packages/client/src/tiptap/menus/banner/index.tsx diff --git a/packages/client/src/tiptap/menubar.tsx b/packages/client/src/tiptap/menubar.tsx index b257235..505b848 100644 --- a/packages/client/src/tiptap/menubar.tsx +++ b/packages/client/src/tiptap/menubar.tsx @@ -32,6 +32,7 @@ import { Blockquote } from './menus/blockquote'; import { HorizontalRule } from './menus/horizontal-rule'; import { Search } from './menus/search'; +import { Banner } from './menus/banner'; import { Countdonw } from './menus/countdown'; import { Image } from './menus/image'; import { Iframe } from './menus/iframe'; @@ -86,6 +87,7 @@ export const MenuBar: React.FC<{ editor: any }> = ({ editor }) => { +