pull/329/head
Zef Hemel 2023-01-22 15:48:12 +01:00
parent a7a5ed8f0a
commit d6d3ed9636
3 changed files with 10 additions and 2 deletions

View File

@ -315,6 +315,13 @@ export class Editor {
}
});
if (this.builtinSettings.fontFamily) {
document.getElementById("sb-root")!.setAttribute(
"style",
`--editor-font: ${this.builtinSettings.fontFamily};`,
);
}
await this.dispatchAppEvent("editor:init");
}

View File

@ -14,7 +14,7 @@ export type PanelMode = number;
export type BuiltinSettings = {
indexPage: string;
syncUrl?: string;
fontFamily?: string;
};
export type PanelConfig = {

View File

@ -3,10 +3,11 @@ release.
---
## Next
## 0.2.9
* Fixed copy & paste, drag & drop of attachments in the [[Desktop]] app
* Continuous [[Sync]]
* Support for embedding [[Markdown/Code Widgets]].
* Ability to set the editor font via the `fontFamily` setting in [[SETTINGS]] (restart the app/reload the page to make it go into effect).
---
## 0.2.8