From 59e3781d22e77b9b47838d781260503f1dd749b0 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 6 Jan 2024 16:27:51 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/10088 --- app/src/protyle/toolbar/Font.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts index 833b7868e..184928918 100644 --- a/app/src/protyle/toolbar/Font.ts +++ b/app/src/protyle/toolbar/Font.ts @@ -203,8 +203,8 @@ export const fontEvent = (protyle: IProtyle, nodeElements: Element[], type?: str color = "var(--b3-card-error-color)" + Constants.ZWSP + "var(--b3-card-error-background)"; } else { const fontStyles = localFontStyles[0].split(Constants.ZWSP); - type = fontStyles[0]; - color = fontStyles[1]; + type = fontStyles.splice(0, 1)[0]; + color = fontStyles.join(Constants.ZWSP); } } if (nodeElements && nodeElements.length > 0) {