Merge branch 'main' of github.com:ueberdosis/tiptap

This commit is contained in:
Hans Pagel
2021-10-26 11:37:15 +02:00
9 changed files with 26 additions and 34 deletions

View File

@@ -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
},
})