From 5551c476002efb6b16d20b62c010b1fbde103e55 Mon Sep 17 00:00:00 2001 From: Chris Sev Date: Mon, 25 Oct 2021 14:09:31 -0700 Subject: [PATCH] fixing onUpdate example (#2084) --- docs/guide/output.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }, })