diff --git a/app/src/protyle/toolbar/Font.ts b/app/src/protyle/toolbar/Font.ts index e250b182e..f3adea545 100644 --- a/app/src/protyle/toolbar/Font.ts +++ b/app/src/protyle/toolbar/Font.ts @@ -80,7 +80,7 @@ export const fontMenu = (protyle: IProtyle) => { textElement = hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "text") as HTMLElement; } if (textElement) { - fontSize = textElement.style.fontSize; + fontSize = textElement.style.fontSize || "16px"; } element.innerHTML = `${lastColorHTML}