fix: fontFamily setting

This commit is contained in:
Felix Roos 2023-12-14 22:51:17 +01:00
parent 8959c630ae
commit d23cac506c
2 changed files with 6 additions and 4 deletions

View file

@ -190,6 +190,10 @@ export class StrudelMirror {
}
setFontFamily(family) {
this.root.style.fontFamily = family;
const scroller = this.root.querySelector('.cm-scroller');
if (scroller) {
scroller.style.fontFamily = family;
}
}
reconfigureExtension(key, value) {
if (!extensions[key]) {