diff --git a/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue b/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue index ff9ddfd67..ab4f5b5f1 100644 --- a/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue +++ b/app/javascript/dashboard/components/widgets/WootWriter/Editor.vue @@ -136,9 +136,11 @@ export default { showCannedMenu(updatedValue) { this.$emit('toggle-canned-menu', !this.isPrivate && updatedValue); }, - value(newValue) { + value(newValue = '') { if (newValue !== this.lastValue) { - this.state = createState(newValue, this.placeholder, this.plugins); + const { tr } = this.state; + tr.insertText(newValue, 0, tr.doc.content.size); + this.state = this.view.state.apply(tr); this.view.updateState(this.state); } },