mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
a8944e19be
commit
e38a495b62
1 changed files with 1 additions and 1 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue