MicroRepl poc

This commit is contained in:
Felix Roos 2023-12-15 22:23:20 +01:00
parent 8e35079fd1
commit 93e8186388
6 changed files with 206 additions and 5 deletions

View file

@ -146,8 +146,7 @@ export class StrudelMirror {
onChange: (v) => {
if (v.docChanged) {
this.code = v.state.doc.toString();
// TODO: repl is still untouched to make sure the old Repl.jsx stays untouched..
// this.repl.setCode(this.code);
this.repl.setCode?.(this.code);
}
},
onEvaluate: () => this.evaluate(),