fix node check

This commit is contained in:
Philipp Kühn 2019-05-18 21:43:10 +02:00
parent 9f3e101c2b
commit 4269e846c5

View File

@ -22,7 +22,7 @@ export default class ComponentView {
this.decorations = decorations this.decorations = decorations
this.editable = editable this.editable = editable
this.selected = false this.selected = false
this.isNode = this.node.constructor.name === 'Node' this.isNode = !!this.node.marks
this.isMark = !this.isNode this.isMark = !this.isNode
this.dom = this.createDOM() this.dom = this.createDOM()
this.contentDOM = this.vm.$refs.content this.contentDOM = this.vm.$refs.content