1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-22 23:12:52 +02:00

update simulator

This commit is contained in:
Ian Storm Taylor
2017-10-25 18:17:36 -07:00
parent fe863c7d47
commit f6b92ba710

View File

@@ -57,9 +57,8 @@ EVENT_HANDLERS.forEach((handler) => {
const event = createEvent(e)
const change = state.change()
stack.handle(handler, change, editor, event)
stack.handle('onBeforeChange', change, editor)
stack.handle('onChange', change, editor)
stack.run(handler, change, editor, event)
stack.run('onChange', change, editor)
this.state = change.state
return this