hotfix: ensure VueNodeViewRenderer will attempt to use the editors global vue instance when extending for components

This commit is contained in:
Ralph Schindler
2022-03-08 15:15:52 -06:00
committed by Dominik
parent e17c41498a
commit 5bc77081b7

View File

@@ -83,7 +83,10 @@ class VueNodeView extends NodeView<(Vue | VueConstructor), Editor, VueNodeViewRe
value: this.getDecorationClasses(),
})
const Component = Vue
// @ts-ignore
const vue = this.editor.contentComponent?.$options._base ?? Vue
const Component = vue
.extend(this.component)
.extend({
props: Object.keys(props),