supporting core/button(s) as innerblock

This commit is contained in:
Antoine M 2023-11-24 15:12:56 +01:00
parent 96069807c6
commit a77e197e02
4 changed files with 6 additions and 4 deletions

View File

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

View File

@ -83,7 +83,7 @@ function Edit({
allowedTypes: ["image"],
accept: "image/*",
onSelect: setIllustrationAttributes,
name: !illustrationUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks__texte-backoffice") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks__texte-backoffice")
name: !illustrationUrl ? (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Ajouter", "homegrade-blocks") : (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Remplacer", "homegrade-blocks")
}), illustrationUrl && (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.Fragment, null, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_components__WEBPACK_IMPORTED_MODULE_4__.Button, {
className: "custom-flow-button",
variant: "primary",
@ -99,7 +99,7 @@ function Edit({
src: illustrationUrl,
alt: illustrationAlt
}), (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, {
allowedBlocks: ["core/paragraph", "core/list", "gravityforms/form", "homegrade-content-blocks/section-titling"]
allowedBlocks: ["core/paragraph", "core/list", "core/button", "core/buttons", "gravityforms/form", "homegrade-content-blocks/section-titling"]
})));
}

File diff suppressed because one or more lines are too long

View File

@ -104,6 +104,8 @@ export default function Edit({ attributes, setAttributes, ...props }) {
allowedBlocks={[
"core/paragraph",
"core/list",
"core/button",
"core/buttons",
"gravityforms/form",
"homegrade-content-blocks/section-titling",
]}