I have the parent block example/parent
that contains
<InnerBlocks
allowedBlocks={['example/children']}
template={template}
/>
And the child block example/children
with
registerBlockType('example/children', {
apiVersion: 2,
...
parent: ['example/parent'],
All works as expected, but if I create reusable block from a children, it can not be inserted in any other parent again, the [+]
icon will automatically create new block without the option to choose a reusable block. Is there a way to enable allowedBlocks example/children
or reusable block of type example/children
?
Edit (more details)
I have the case of parent - children blocks, and inside the parent block InnerBlocks
should be allowed both the children block and reusable blocks (preferable created from the example/children
)
core/block
, the post technically isn't aware of sub-blocks as the contents of acore/block
belong to another post. I had to re-readd your last paragraph several times though and I'm still unsure what it's trying to put across, but I'm guessiing that you'r asking why you can't insert a reusable block inside your custom block when you've usedalllowedBlocks
? Or have I miisunderstood? Can you edit the question to explain in a different clearer way that's less ambiguous?