Fixes #326
parent
a7a5ed8f0a
commit
d6d3ed9636
|
@ -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");
|
await this.dispatchAppEvent("editor:init");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ export type PanelMode = number;
|
||||||
|
|
||||||
export type BuiltinSettings = {
|
export type BuiltinSettings = {
|
||||||
indexPage: string;
|
indexPage: string;
|
||||||
syncUrl?: string;
|
fontFamily?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type PanelConfig = {
|
export type PanelConfig = {
|
||||||
|
|
|
@ -3,10 +3,11 @@ release.
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
## Next
|
## 0.2.9
|
||||||
* Fixed copy & paste, drag & drop of attachments in the [[Desktop]] app
|
* Fixed copy & paste, drag & drop of attachments in the [[Desktop]] app
|
||||||
* Continuous [[Sync]]
|
* Continuous [[Sync]]
|
||||||
* Support for embedding [[Markdown/Code Widgets]].
|
* 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
|
## 0.2.8
|
||||||
|
|
Loading…
Reference in New Issue