hotfix: ensure VueNodeViewRenderer will attempt to use the editors global vue instance when extending for components
This commit is contained in:
@@ -83,7 +83,10 @@ class VueNodeView extends NodeView<(Vue | VueConstructor), Editor, VueNodeViewRe
|
|||||||
value: this.getDecorationClasses(),
|
value: this.getDecorationClasses(),
|
||||||
})
|
})
|
||||||
|
|
||||||
const Component = Vue
|
// @ts-ignore
|
||||||
|
const vue = this.editor.contentComponent?.$options._base ?? Vue
|
||||||
|
|
||||||
|
const Component = vue
|
||||||
.extend(this.component)
|
.extend(this.component)
|
||||||
.extend({
|
.extend({
|
||||||
props: Object.keys(props),
|
props: Object.keys(props),
|
||||||
|
|||||||
Reference in New Issue
Block a user