From 15e9f9fa2d61fe02e5b1c050df7679066fae7a4f Mon Sep 17 00:00:00 2001 From: yanmao <55792257+yanmao-cc@users.noreply.github.com> Date: Wed, 8 Dec 2021 11:04:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=B2=98=E8=B4=B4=E4=BC=9A=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E8=BF=87=E6=BB=A4=E6=8E=89=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/engine/src/change/paste.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/engine/src/change/paste.ts b/packages/engine/src/change/paste.ts index 80c9bc6f..cdbfddc3 100644 --- a/packages/engine/src/change/paste.ts +++ b/packages/engine/src/change/paste.ts @@ -51,10 +51,10 @@ export default class Paste { } if (node.isText()) { let text = node.text(); - if (/\s/.test(text)) { - text = text.replace(/\s/g, ' '); - node.text(text); - } + // if (/\x20/.test(text)) { + // text = text.replace(/\x20/g, ' '); + // node.text(text); + // } if (/\u200b/.test(text)) { let isRemove = true; const next = node.next();