diff --git a/docs/guide/custom-extensions.md b/docs/guide/custom-extensions.md index 2e5f6a71..5abe3128 100644 --- a/docs/guide/custom-extensions.md +++ b/docs/guide/custom-extensions.md @@ -441,7 +441,7 @@ const CustomExtension = Extension.create({ onUpdate() { // The content has changed. }, - onSelectionUpdate({editor}) { + onSelectionUpdate({ editor }) { // The selection has changed. }, onTransaction({ transaction }) { diff --git a/docs/guide/output.md b/docs/guide/output.md index 84a80cc2..15106749 100644 --- a/docs/guide/output.md +++ b/docs/guide/output.md @@ -100,7 +100,7 @@ const editor = new Editor({ content: `
Example Content
`, // triggered on every change - onUpdate() { + onUpdate: () => { const json = this.getJSON() // send the content to an API here },