From 6b6aa934311ae3034e448b702391cc753b41e6de Mon Sep 17 00:00:00 2001 From: Naoki Ohashi Date: Sat, 25 Jul 2020 02:23:20 +0900 Subject: [PATCH] Docs: Fix sample code of Block Preview in block registration docs (#23899) * Fix sample code of Block Preview in block registration docs * fix some * Update docs/designers-developers/developers/block-api/block-registration.md inner blocks array should contain block object Co-authored-by: Ajit Bohra * Add a trailing comma. Co-authored-by: Ajit Bohra --- .../developers/block-api/block-registration.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/designers-developers/developers/block-api/block-registration.md b/docs/designers-developers/developers/block-api/block-registration.md index 96a87064371eb6..e6987e1cfed369 100644 --- a/docs/designers-developers/developers/block-api/block-registration.md +++ b/docs/designers-developers/developers/block-api/block-registration.md @@ -195,7 +195,8 @@ example: { attributes: { cover: 'https://example.com/image.jpg', }, - innerBlocks: { + innerBlocks: [ + { name: 'core/paragraph', attributes: { /* translators: example text. */ @@ -204,6 +205,7 @@ example: { ), }, }, + ], }, ```