This commit is contained in:
Vanessa 2022-10-18 10:38:54 +08:00
parent a8944e19be
commit e38a495b62

View file

@ -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}<div style="margin: 4px 0 2px">${window.siyuan.languages.colorFont}</div>
<div class="fn__flex">