From 3e11c52aaf821df9f828fc2079f987b110152594 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Tue, 16 Nov 2021 21:28:08 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A0=BC=E5=BC=8F=E5=88=B7=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E6=A0=B7=E5=BC=8F=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/editor/core/command/CommandAdapt.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/core/command/CommandAdapt.ts b/src/editor/core/command/CommandAdapt.ts index d62e2dd..e58d641 100644 --- a/src/editor/core/command/CommandAdapt.ts +++ b/src/editor/core/command/CommandAdapt.ts @@ -33,7 +33,7 @@ export class CommandAdapt { const painterStyleKeys = ['bold', 'color', 'font', 'size', 'italic', 'underline', 'strikeout'] painterStyleKeys.forEach(p => { const key = p as keyof typeof ElementStyleKey - if (painterStyle[key] === undefined && s[key] !== undefined) { + if (painterStyle[key] === undefined) { painterStyle[key] = s[key] as any } })