supporting core/button(s) as innerblock
This commit is contained in:
parent
96069807c6
commit
a77e197e02
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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
|
|
@ -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",
|
||||
]}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user