我有父块example/parent
包含
<InnerBlocks
allowedBlocks={[\'example/children\']}
template={template}
/>
和子块example/children
具有registerBlockType(\'example/children\', {
apiVersion: 2,
...
parent: [\'example/parent\'],
所有这些都按预期工作,但如果我从子级创建可重用块,则不能再次将其插入任何其他父级[+]
图标将自动创建新块,无需选择可重用块。有没有办法启用allowedBlocksexample/children
或类型的可重用块example/children
?Edit (more details)
我有父子块的情况,在父块内部InnerBlocks
应同时允许子块和可重用块(最好是从example/children
)