Skip to content

Commit

Permalink
fixing onUpdate example (#2084)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Sev committed Oct 25, 2021
1 parent b97e6d5 commit 5551c47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/guide/output.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
})
Expand Down

0 comments on commit 5551c47

Please sign in to comment.