added events to toolbars

This commit is contained in:
ojack
2022-02-11 16:24:54 +01:00
parent a20bfdc787
commit 1e70e82ea3
8 changed files with 5633 additions and 197 deletions

View File

@@ -6,6 +6,7 @@ module.exports = class Editor extends Component {
constructor (id, state, emit) {
super(id)
this.local = state.components[id] = {}
state.editor = this // hacky way fo sharing editor to rest of app
this.emit = emit
}