mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43:49 +08:00
Merge branch 'main' of github.com:ueberdosis/tiptap
This commit is contained in:
commit
2f7f7ce0ec
@ -441,7 +441,7 @@ const CustomExtension = Extension.create({
|
||||
onUpdate() {
|
||||
// The content has changed.
|
||||
},
|
||||
onSelectionUpdate({editor}) {
|
||||
onSelectionUpdate({ editor }) {
|
||||
// The selection has changed.
|
||||
},
|
||||
onTransaction({ transaction }) {
|
||||
|
@ -100,7 +100,7 @@ const editor = new Editor({
|
||||
content: `<p>Example Content</p>`,
|
||||
|
||||
// triggered on every change
|
||||
onUpdate() {
|
||||
onUpdate: () => {
|
||||
const json = this.getJSON()
|
||||
// send the content to an API here
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user