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', + }, + ], + }, +]) ```