mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-10 19:23:49 +08:00
fixing onUpdate example (#2084)
This commit is contained in:
parent
b97e6d5aff
commit
5551c47600
@ -100,8 +100,8 @@ const editor = new Editor({
|
|||||||
content: `<p>Example Content</p>`,
|
content: `<p>Example Content</p>`,
|
||||||
|
|
||||||
// triggered on every change
|
// triggered on every change
|
||||||
onUpdate: () => {
|
onUpdate: ({ editor }) => {
|
||||||
const json = this.getJSON()
|
const json = editor.getJSON()
|
||||||
// send the content to an API here
|
// send the content to an API here
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user