check for empty values

This commit is contained in:
Alina Beck 2019-08-27 16:37:28 +01:00
parent 10e11a4e9b
commit 604789b32e

View File

@ -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