rename selection to selectionUpdate, add editor to event listener props
This commit is contained in:
@@ -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.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user