feat: remove keepInBounds

This commit is contained in:
Philipp Kühn
2021-04-16 10:46:50 +02:00
parent 9335858392
commit d7282f168b
5 changed files with 2 additions and 18 deletions

View File

@@ -20,21 +20,15 @@ export const BubbleMenu = defineComponent({
type: Object as PropType<BubbleMenuPluginProps['editor']>,
required: true,
},
keepInBounds: {
type: Boolean as PropType<BubbleMenuPluginProps['keepInBounds']>,
default: true,
},
},
setup({ editor, keepInBounds }, { slots }) {
setup({ editor }, { slots }) {
const root = ref<HTMLElement | null>(null)
onMounted(() => {
editor.registerPlugin(BubbleMenuPlugin({
editor,
element: root.value as HTMLElement,
keepInBounds,
}))
})