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 } })