don’t use __vue__

This commit is contained in:
Philipp Kühn
2021-03-05 11:01:26 +01:00
parent a073d75dff
commit e9e3418a0f
6 changed files with 63 additions and 33 deletions

View File

@@ -255,6 +255,9 @@ class VueNodeView implements NodeView {
export function VueNodeViewRenderer(component: Component, options?: Partial<VueNodeViewRendererOptions>): NodeViewRenderer {
return (props: NodeViewRendererProps) => {
// try to get the parent component
// this is important for vue devtools to show the component hierarchy correctly
// maybe its `undefined` because <editor-content> isnt rendered yet
if (!props.editor.contentComponent) {
return {}
}