fix: fontFamily setting
This commit is contained in:
parent
8959c630ae
commit
d23cac506c
2 changed files with 6 additions and 4 deletions
|
|
@ -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]) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue