Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Add nested settings mechanism with a template configuration and allowedBlock blocks logic. #6546
We extracted this PR from #5452, so we can merge the logic changes without changing UI and UX for now. From the the code point of view the original PR with this changes was already approved, and was waiting UX enhancements.
This PR makes easy to set settings that configure how a given nested area behaves. For now, the only settings implemented are allowedBlocks and template.
How has this been tested?
For testing purposes change the columns block InnerBlocks component to:
Verify that after the change to the block, the initial two columns have placeholders and that using the inserter we can only use buttons and paragraphs.