mirror of
https://github.com/hydra-synth/hydra.git
synced 2025-12-19 21:29:58 +01:00
forward editor events to store
This commit is contained in:
@@ -6,10 +6,14 @@ module.exports = class Editor extends Component {
|
||||
constructor (id, state, emit) {
|
||||
super(id)
|
||||
this.local = state.components[id] = {}
|
||||
this.emit = emit
|
||||
}
|
||||
|
||||
load (element) {
|
||||
this.editor = new HydraEditor(this.textEl)
|
||||
this.editor.on("*", (e, t) => {
|
||||
this.emit(e)
|
||||
})
|
||||
}
|
||||
|
||||
update (center) {
|
||||
|
||||
Reference in New Issue
Block a user