This commit is contained in:
Zef Hemel
2023-01-22 15:48:12 +01:00
parent a7a5ed8f0a
commit d6d3ed9636
3 changed files with 10 additions and 2 deletions
+7
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");
}
+1 -1
View File
@@ -14,7 +14,7 @@ export type PanelMode = number;
export type BuiltinSettings = {
indexPage: string;
syncUrl?: string;
fontFamily?: string;
};
export type PanelConfig = {