mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-06-07 17:43: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>`,
|
||||
|
||||
// triggered on every change
|
||||
onUpdate: () => {
|
||||
const json = this.getJSON()
|
||||
onUpdate: ({ editor }) => {
|
||||
const json = editor.getJSON()
|
||||
// send the content to an API here
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user