fixing onUpdate example (#2084)

This commit is contained in:
Chris Sev 2021-10-25 14:09:31 -07:00 committed by GitHub
parent b97e6d5aff
commit 5551c47600
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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