Skip to content

Commit

Permalink
docs: Update events.md (#2152)
Browse files Browse the repository at this point in the history
missing closing parens
  • Loading branch information
millerrafi authored Nov 9, 2021
1 parent 2bbc594 commit 38b533d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,35 +76,35 @@ Or you can register your event listeners on a running editor instance:
```js
editor.on('beforeCreate', ({ editor }) => {
// Before the view is created.
}
})

editor.on('create', ({ editor }) => {
// The editor is ready.
}
})

editor.on('update', ({ editor }) => {
// The content has changed.
}
})

editor.on('selectionUpdate', ({ editor }) => {
// The selection has changed.
}
})

editor.on('transaction', ({ editor, transaction }) => {
// The editor state has changed.
}
})

editor.on('focus', ({ editor, event }) => {
// The editor is focused.
}
})

editor.on('blur', ({ editor, event }) => {
// The editor isn’t focused anymore.
}
})

editor.on('destroy', () => {
// The editor is being destroyed.
}
})
```

#### Unbind event listeners
Expand Down

0 comments on commit 38b533d

Please sign in to comment.