From e2756aab5f10df42cf953a765ac80a9bd6c3c7af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 5 May 2021 14:19:24 +0200 Subject: [PATCH] docs: update content --- .../docPages/api/commands/insert-content.md | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/docs/src/docPages/api/commands/insert-content.md b/docs/src/docPages/api/commands/insert-content.md index 73516d9b..cb1253af 100644 --- a/docs/src/docPages/api/commands/insert-content.md +++ b/docs/src/docPages/api/commands/insert-content.md @@ -29,5 +29,27 @@ editor.commands.insertContent({ }, ], }) + +// Multiple nodes at once +editor.commands.insertContent([ + { + type: 'paragraph', + content: [ + { + type: 'text', + text: 'First paragraph', + }, + ], + }, + { + type: 'paragraph', + content: [ + { + type: 'text', + text: 'Second paragraph', + }, + ], + }, +]) ```