From 4269e846c570c5dd8ab64982f7866f3f000c9d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Sat, 18 May 2019 21:43:10 +0200 Subject: [PATCH] fix node check --- packages/tiptap/src/Utils/ComponentView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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