From 57d73ed24281f3a4efc6ccdf83bc69169e92617b Mon Sep 17 00:00:00 2001 From: CarlosPC94 Date: Sat, 8 Oct 2022 15:16:17 +0200 Subject: [PATCH 1/2] Isolated checkbox fixed issue#51 --- src/components/editor.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/editor.vue b/src/components/editor.vue index 0dcd2b9b4..e4f749f28 100644 --- a/src/components/editor.vue +++ b/src/components/editor.vue @@ -123,7 +123,9 @@ export default { content: this.getContent, autofocus: true, onUpdate: ({ editor }) => { - this.setContent(editor.getHTML()) + var aux = editor.getHTML(); + this.editor.commands.clearContent() + this.setContent(aux) this.saveFile() } }) From 61187162dde1ed9463b469f6988ef9bf9e1fcf90 Mon Sep 17 00:00:00 2001 From: CarlosPC94 Date: Sun, 9 Oct 2022 13:29:37 +0200 Subject: [PATCH 2/2] Optimice code --- src/components/editor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/editor.vue b/src/components/editor.vue index e4f749f28..48c7f19cf 100644 --- a/src/components/editor.vue +++ b/src/components/editor.vue @@ -123,9 +123,9 @@ export default { content: this.getContent, autofocus: true, onUpdate: ({ editor }) => { - var aux = editor.getHTML(); + const data = editor.getHTML(); this.editor.commands.clearContent() - this.setContent(aux) + this.setContent(data) this.saveFile() } })