fix: rename key to pluginKey for menus

This commit is contained in:
Philipp Kühn
2021-08-13 12:33:06 +02:00
parent 8fd75bc4b6
commit 89d26f7cba
12 changed files with 40 additions and 40 deletions

View File

@@ -14,7 +14,7 @@ export const BubbleMenu = defineComponent({
props: {
pluginKey: {
// TODO: TypeScript breaks :(
// type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['key'], string>>],
// type: [String, Object as PropType<Exclude<BubbleMenuPluginProps['pluginKey'], string>>],
type: [String, Object],
default: 'bubbleMenu',
},
@@ -47,7 +47,7 @@ export const BubbleMenu = defineComponent({
} = props
editor.registerPlugin(BubbleMenuPlugin({
key: pluginKey,
pluginKey,
editor,
element: root.value as HTMLElement,
tippyOptions,