Skip to content

Commit

Permalink
refactor: limit content blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
colorfield committed May 6, 2024
1 parent 2525014 commit 5318cf4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion packages/drupal/gutenberg_blocks/src/blocks/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,24 @@ registerBlockType(`custom/content`, {
edit() {
return (
<main style={style} className="prose lg:prose-xl">
<InnerBlocks templateLock={false} template={[['core/paragraph', {}]]} />
<InnerBlocks
templateLock={false}
template={[['core/paragraph', {}]]}
allowedBlocks={[
'core/paragraph',
'core/list',
'core/table',
'core/quote',
'core/code',
'custom/heading',
'custom/cta',
'custom/image-with-link',
'custom/mathjax',
'custom/slider',
'custom/teasers',
'custom/form',
]}
/>
</main>
);
},
Expand Down

0 comments on commit 5318cf4

Please sign in to comment.