REPL: solo and sync configuration
This commit is contained in:
parent
ae335ac40c
commit
b913e1c50d
2 changed files with 15 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue