handling innerBlocks such as pageCard

This commit is contained in:
Antoine M 2024-07-10 15:34:40 +02:00
parent 7b57772c92
commit bbc5d883e3
4 changed files with 4 additions and 3 deletions

View File

@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'bd0654b3242e44a3b8d4');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'e5ce9758e2e101ceee61');

View File

@ -211,7 +211,7 @@ function Edit({
})
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_4__.InnerBlocks, {
template: TEMPLATE,
allowedBlocks: ["core/paragraph", "homegrade-content-blocks/post-card",
allowedBlocks: ["core/paragraph", "homegrade-content-blocks/post-card", "homegrade-content-blocks/page-card",
// "homegrade-content-blocks/column-card",
"homegrade-content-blocks/card-free"]
})));

File diff suppressed because one or more lines are too long

View File

@ -73,6 +73,7 @@ export default function Edit({ attributes, setAttributes, clientId }) {
allowedBlocks={[
"core/paragraph",
"homegrade-content-blocks/post-card",
"homegrade-content-blocks/page-card",
// "homegrade-content-blocks/column-card",
"homegrade-content-blocks/card-free",
]}