Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
erral committed Dec 30, 2024
1 parent 8228d2d commit 1ecbe10
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/source/blocks/examples/customschemaandview.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@ And before the last `return config;` statement, write the following configuratio

```js
config.blocks.blocksConfig.block02 = {
id: 'block02',
title: 'Block 02',
view: View02,
id: 'block02', // this is the block id, it must match the id on the previous line
title: 'Block 02', // this is the block title
view: View02, // this is the block's view component
// edit: null;
blockSchema: Schema02,
icon: imagesSVG,
sidebarTab: 1,
blockSchema: Schema02, // this is the schema that will be used to render the edit form
icon: imagesSVG, // this is the image that will be shown in the block selector
sidebarTab: 1, // this is set to 1 to have the `Block` tab selected in the sidebar editor when editing this block
};
```

Expand Down

0 comments on commit 1ecbe10

Please sign in to comment.