Skip to content

Commit

Permalink
Docs: Fix sample code of Block Preview in block registration docs (#2…
Browse files Browse the repository at this point in the history
…3899)

* 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 <[email protected]>

* Add a trailing comma.

Co-authored-by: Ajit Bohra <[email protected]>
  • Loading branch information
naogify and ajitbohra authored Jul 24, 2020
1 parent 426423d commit 6b6aa93
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ example: {
attributes: {
cover: 'https://example.com/image.jpg',
},
innerBlocks: {
innerBlocks: [
{
name: 'core/paragraph',
attributes: {
/* translators: example text. */
Expand All @@ -204,6 +205,7 @@ example: {
),
},
},
],
},
```

Expand Down

0 comments on commit 6b6aa93

Please sign in to comment.