import { Extension } from '@tiptap/core' import { BubbleMenuPlugin, BubbleMenuPluginProps } from './bubble-menu-plugin' export type BubbleMenuOptions = Omit export const BubbleMenu = Extension.create({ name: 'bubbleMenu', defaultOptions: { element: document.createElement('div'), keepInBounds: true, }, addProseMirrorPlugins() { return [ BubbleMenuPlugin({ editor: this.editor, element: this.options.element, keepInBounds: this.options.keepInBounds, }), ] }, })