From 0a86626c6e440b9ed219794345f18a4823380d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 1 Oct 2021 21:41:46 +0200 Subject: [PATCH 1/2] docs: fix whitespace --- docs/guide/custom-extensions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) { From bfd19e2dffe709dbe129ca11fdd5bc89608bfd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 1 Oct 2021 21:41:55 +0200 Subject: [PATCH 2/2] docs: fix example --- docs/guide/output.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 },