From e4a9bad48b6c7bc3afb2ecfdc43549867733e271 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Wed, 21 Sep 2022 15:14:50 +0800 Subject: [PATCH] :sparkles: fix https://github.com/siyuan-note/siyuan/issues/5914 --- app/src/protyle/toolbar/Font.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts index fe214debe..b41a66a5d 100644 --- a/app/src/protyle/toolbar/Font.ts +++ b/app/src/protyle/toolbar/Font.ts @@ -79,6 +79,23 @@ export const fontMenu = (protyle: IProtyle) => {
+
+
${window.siyuan.languages.fontSize}
+
+
`; element.addEventListener(getEventName(), function (event: Event) { let target = event.target as HTMLElement; @@ -90,6 +107,9 @@ export const fontMenu = (protyle: IProtyle) => { target = target.parentElement; } }); + element.querySelector("select").addEventListener("change", function (event: Event) { + fontEvent(protyle, "fontSize", (event.target as HTMLSelectElement).value); + }) return element; };