From 856037c3c970419f3b74e6997349031652d02d36 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 23 Apr 2024 16:21:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=BB=E5=8A=A1=E6=8F=8F=E8=BF=B0?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E5=9B=BE=E7=89=87=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/components/TEditor.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/components/TEditor.vue b/resources/assets/js/components/TEditor.vue index 7ac5d6f63..c0bea456e 100755 --- a/resources/assets/js/components/TEditor.vue +++ b/resources/assets/js/components/TEditor.vue @@ -495,7 +495,7 @@ export default { transferChange(visible) { if (!visible && this.editorT != null) { - this.content = this.editorT.getBody().innerHTML; + this.content = this.editorT.getContent(); this.$emit('input', this.content); this.editorT.destroy(); this.editorT = null; @@ -547,13 +547,13 @@ export default { if (this.getEditor() === null) { return ""; } - return this.getEditor().getBody().innerHTML; + return this.getEditor().getContent(); }, setContent(content) { if (this.getEditor() === null) { this.content = content; - } else if (content != this.getEditor().getBody().innerHTML) { + } else if (content != this.getEditor().getContent()) { this.getEditor().setContent(content); } },