eval line and eval block working

This commit is contained in:
ojack
2022-02-11 16:45:16 +01:00
parent 2c0fbfdc2f
commit d7501bde11
3 changed files with 26 additions and 4 deletions

View File

@@ -12,8 +12,8 @@ module.exports = class Editor extends Component {
load (element) {
this.editor = new HydraEditor(this.textEl)
this.editor.on("*", (e, t) => {
this.emit(e)
this.editor.on("*", (e, args) => {
this.emit(e, args)
})
// hacky, maybe not necessary
this.innerText = document.getElementsByClassName('CodeMirror')[0]