diff --git a/docs/guide/output.md b/docs/guide/output.md index 3a5d2183..0aa7b9ac 100644 --- a/docs/guide/output.md +++ b/docs/guide/output.md @@ -100,8 +100,8 @@ const editor = new Editor({ content: `

Example Content

`, // triggered on every change - onUpdate: () => { - const json = this.getJSON() + onUpdate: ({ editor }) => { + const json = editor.getJSON() // send the content to an API here }, })