rename init to created

This commit is contained in:
Philipp Kühn
2020-03-07 22:54:45 +01:00
parent 25d2e0540c
commit 486d0e0f5f
3 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ export default class History extends Extension {
name = 'history'
init() {
created() {
this.editor.registerCommand('undo', (next, { view }) => {
undo(view.state, view.dispatch)
next()