mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-15 11:09:01 +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.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
|
||||||
|
Loading…
Reference in New Issue
Block a user