mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-14 18:49:02 +08:00
fix node check
This commit is contained in:
parent
9f3e101c2b
commit
4269e846c5
@ -22,7 +22,7 @@ export default class ComponentView {
|
||||
this.decorations = decorations
|
||||
this.editable = editable
|
||||
this.selected = false
|
||||
this.isNode = this.node.constructor.name === 'Node'
|
||||
this.isNode = !!this.node.marks
|
||||
this.isMark = !this.isNode
|
||||
this.dom = this.createDOM()
|
||||
this.contentDOM = this.vm.$refs.content
|
||||
|
Loading…
Reference in New Issue
Block a user