From 604789b32ed20815fc1e954a21bb7be25323d554 Mon Sep 17 00:00:00 2001 From: Alina Beck Date: Tue, 27 Aug 2019 16:37:28 +0100 Subject: [PATCH] check for empty values --- webapp/components/Editor/Editor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/components/Editor/Editor.vue b/webapp/components/Editor/Editor.vue index fb75914d3..52aadb8e4 100644 --- a/webapp/components/Editor/Editor.vue +++ b/webapp/components/Editor/Editor.vue @@ -114,13 +114,13 @@ export default { return } this.lastValueHash = contentHash - this.editor.setContent(content) + this.$nextTick(() => this.editor.setContent(content)) }, }, placeholder: { immediate: true, handler: function(val) { - if (!val) { + if (!val || !this.editor) { return } this.editor.extensions.options.placeholder.emptyNodeText = val