REPL: solo and sync configuration

This commit is contained in:
Björn Þór Jónsson 2024-11-09 15:13:24 +01:00
parent ae335ac40c
commit b913e1c50d
2 changed files with 15 additions and 7 deletions

View file

@ -10,6 +10,8 @@ if (typeof HTMLElement !== 'undefined') {
static observedAttributes = ['code'];
settings = codemirrorSettings.get();
editor = null;
sync = false;
solo = true;
constructor() {
super();
}
@ -49,6 +51,8 @@ if (typeof HTMLElement !== 'undefined') {
});
this.dispatchEvent(event);
},
solo: this.solo,
sync: this.sync,
});
// init settings
this.editor.updateSettings(this.settings);