Skip to content

Commit

Permalink
hotfix: ensure VueNodeViewRenderer will attempt to use the editors gl…
Browse files Browse the repository at this point in the history
…obal vue instance when extending for components
  • Loading branch information
ralphschindler authored and bdbch committed May 13, 2022
1 parent e17c414 commit 5bc7708
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vue-2/src/VueNodeViewRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 5bc7708

Please sign in to comment.