doc update: onSelection → onSelectionUpdate
live: https://www.tiptap.dev/guide/custom-extensions#events
This commit is contained in:
@@ -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 }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user