From e068e7dc5d9fe2edb7c43e70ccffa73e57262224 Mon Sep 17 00:00:00 2001 From: Micle Bu Date: Sun, 28 Jun 2020 19:25:04 +0800 Subject: [PATCH] fix(editor): set content --- src/components/QuasarTiptap.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/QuasarTiptap.vue b/src/components/QuasarTiptap.vue index ea92ad9..1c979f2 100644 --- a/src/components/QuasarTiptap.vue +++ b/src/components/QuasarTiptap.vue @@ -266,8 +266,10 @@ export default { setContent () { try { this.json = JSON.parse(this.content) + this.html = '' } catch (e) { this.html = this.content + this.json = {} } // From JSON