diff --git a/packages/block-library/src/column/block.json b/packages/block-library/src/column/block.json index 41e3af52d6a6f9..1a1513ad2e66c3 100644 --- a/packages/block-library/src/column/block.json +++ b/packages/block-library/src/column/block.json @@ -13,6 +13,9 @@ "width": { "type": "string" }, + "allowedBlocks": { + "type": "array" + }, "templateLock": { "enum": [ "all", "insert", false ] } diff --git a/packages/block-library/src/column/edit.js b/packages/block-library/src/column/edit.js index ebd91ee0b4925c..d74fb009c30b15 100644 --- a/packages/block-library/src/column/edit.js +++ b/packages/block-library/src/column/edit.js @@ -25,7 +25,12 @@ import { useSelect, useDispatch } from '@wordpress/data'; import { sprintf, __ } from '@wordpress/i18n'; function ColumnEdit( { - attributes: { verticalAlignment, width, templateLock = false }, + attributes: { + verticalAlignment, + width, + templateLock = false, + allowedBlocks, + }, setAttributes, clientId, } ) { @@ -92,6 +97,7 @@ function ColumnEdit( { { ...blockProps, 'aria-label': label }, { templateLock, + allowedBlocks, renderAppender: hasChildBlocks ? undefined : InnerBlocks.ButtonBlockAppender,