diff --git a/packages/tiptap/src/Utils/ComponentView.js b/packages/tiptap/src/Utils/ComponentView.js index 6893572ce..d507ca3ff 100644 --- a/packages/tiptap/src/Utils/ComponentView.js +++ b/packages/tiptap/src/Utils/ComponentView.js @@ -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