From a7353e3e83b1bb90be66e9b6d953cc8e8e73cc3e Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Mon, 15 Mar 2021 11:06:09 +0100 Subject: [PATCH] docs: update content, fix #210 --- docs/src/docPages/guide/content.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/docPages/guide/content.md b/docs/src/docPages/guide/content.md index ec46805a..1b577257 100644 --- a/docs/src/docPages/guide/content.md +++ b/docs/src/docPages/guide/content.md @@ -19,7 +19,7 @@ You can store that in your database (or send it to an API) and restore the docum ```js new Editor({ content: { - "type": "document", + "type": "doc", "content": [ // … ] @@ -30,8 +30,8 @@ new Editor({ Or if you need to wait for something, you can do it later through the editor instance: ```js -editor.setContent({ - "type": "document", +editor.commands.setContent({ + "type": "doc", "content": [ // … ]