Allow / Dissalow nested sub-blocks #24596
Labels
[Feature] Block API
API that allows to express the block paradigm.
[Feature] Nested / Inner Blocks
Anything related to the experience of nested/inner blocks inside a larger container, like Group or P
If I create a foo Block and want to use and allow core blocks in the editing experience - like core/columns - I feel there should be a way of allowing or disallowing certain nested blocks ie.
Similarly -
If I allow barBlock to have a parent of core/column then barBlock can be inserted anywhere with a column.
If I only allow barBlock in a fooBlock then the editor cannot insert them into a column layout within fooBlock in the interface.
It would be nice to be able to allow this via accepted formats similar to the below for example
parent: [ 'foobars/foo > core/columns > core/column' ],
to show exact structure or perhaps
parent: [ 'foobars/foo.core/column' ],
To show any column within a foo block??
foobars/foo could then have an allowed_blocks parameter of core/columns or foobars/bar depending on how the editor wants the layout.
The text was updated successfully, but these errors were encountered: