mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
Support preview fonts (#14183)
This commit is contained in:
parent
b737202e7c
commit
853cf71d31
1 changed files with 1 additions and 1 deletions
|
|
@ -361,7 +361,7 @@ export const editor = {
|
|||
let fontFamilyHTML = `<option value="">${window.siyuan.languages.default}</option>`;
|
||||
fetchPost("/api/system/getSysFonts", {}, (response) => {
|
||||
response.data.forEach((item: string) => {
|
||||
fontFamilyHTML += `<option value="${item}"${window.siyuan.config.editor.fontFamily === item ? " selected" : ""}>${item}</option>`;
|
||||
fontFamilyHTML += `<option value="${item}" style='font-family:"${item}",var(--b3-font-family);'${window.siyuan.config.editor.fontFamily === item ? " selected" : ""}>${item}</option>`;
|
||||
});
|
||||
fontFamilyElement.innerHTML = fontFamilyHTML;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue