From 7d101123d6b2f6c83903bc4a089182b84629b8cf Mon Sep 17 00:00:00 2001 From: wangqi01 <13693607080@163.com> Date: Fri, 8 Nov 2024 19:28:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=B2=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=BA=86=E5=AD=97=E4=BD=93=E6=A0=B7=E5=BC=8F=E7=9A=84?= =?UTF-8?q?=E8=8A=82=E7=82=B9=EF=BC=8C=E5=9C=A8=E6=B8=85=E7=A9=BA=E5=90=8E?= =?UTF-8?q?=E5=86=8D=E8=BE=93=E5=85=A5=E6=96=87=E6=9C=AC=EF=BC=8C=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E7=9A=84=E5=AD=97=E4=BD=93=E6=A0=B7=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E6=88=90=E4=BA=86=E4=B8=BB=E9=A2=98=E6=A0=B7=E5=BC=8F=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/plugins/RichText.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simple-mind-map/src/plugins/RichText.js b/simple-mind-map/src/plugins/RichText.js index e112319e..0fe89e1e 100644 --- a/simple-mind-map/src/plugins/RichText.js +++ b/simple-mind-map/src/plugins/RichText.js @@ -540,8 +540,8 @@ class RichText { // 如果编辑过程中删除所有字符,那么会丢失主题的样式 if (len <= 0 || (len === 1 && contents.ops[0].insert === '\n')) { this.lostStyle = true - // 需要删除节点的样式数据 - this.syncFormatToNodeConfig(null, true) + // // 需要删除节点的样式数据 + // this.syncFormatToNodeConfig(null, true) } else if (this.lostStyle && !this.isCompositing) { // 如果处于样式丢失状态,那么需要进行格式化加回样式 this.setTextStyleIfNotRichText(this.node)