doc update: onSelection → onSelectionUpdate

live: https://www.tiptap.dev/guide/custom-extensions#events
This commit is contained in:
Forrest O
2021-07-08 15:55:31 +03:00
committed by Hans Pagel
parent cb910f5add
commit 3f733dde3c

View File

@@ -404,7 +404,7 @@ const CustomExtension = Extension.create({
onUpdate() { onUpdate() {
// The content has changed. // The content has changed.
}, },
onSelection() { onSelectionUpdate({editor}) {
// The selection has changed. // The selection has changed.
}, },
onTransaction({ transaction }) { onTransaction({ transaction }) {