rename selection to selectionUpdate, add editor to event listener props

This commit is contained in:
Philipp Kühn
2021-03-09 09:50:03 +01:00
parent 789a1d5551
commit 15848473ed
7 changed files with 74 additions and 21 deletions

View File

@@ -47,10 +47,14 @@ editor.on('update', () => {
// The content has changed.
}
editor.on('selection', () => {
editor.on('selectionUpdate', () => {
// The selection has changed.
}
editor.on('viewUpdate', () => {
// The view has changed.
}
editor.on('transaction', ({ transaction }) => {
// The editor state has changed.
}