delocking block template and accepting core/buttons
This commit is contained in:
parent
b0fe005f94
commit
91a47b847e
|
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'edbffd91e4982329b8e4');
|
||||
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => 'ba3d0067d964fcf1fdb4');
|
||||
|
|
|
|||
|
|
@ -40,11 +40,10 @@ function Edit({
|
|||
className: `homegrade-blocks-tips-to-know`
|
||||
})
|
||||
}, (0,_wordpress_element__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_5__.InnerBlocks, {
|
||||
allowedBlocks: ["homegrade-content-blocks/section-titling", "homegrade-content-blocks/tips-container"],
|
||||
allowedBlocks: ["homegrade-content-blocks/section-titling", "homegrade-content-blocks/tips-container", "core/button", "core/buttons"],
|
||||
template: [["homegrade-content-blocks/section-titling", {
|
||||
sectionTitle: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_1__.__)("Bon à savoir", "homegrade")
|
||||
}], ["homegrade-content-blocks/tips-container"]],
|
||||
templateLock: true
|
||||
}], ["homegrade-content-blocks/tips-container"]]
|
||||
})));
|
||||
}
|
||||
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -23,6 +23,8 @@ export default function Edit({ attributes, setAttributes, clientId }) {
|
|||
allowedBlocks={[
|
||||
"homegrade-content-blocks/section-titling",
|
||||
"homegrade-content-blocks/tips-container",
|
||||
"core/button",
|
||||
"core/buttons",
|
||||
]}
|
||||
template={[
|
||||
[
|
||||
|
|
@ -31,7 +33,6 @@ export default function Edit({ attributes, setAttributes, clientId }) {
|
|||
],
|
||||
["homegrade-content-blocks/tips-container"],
|
||||
]}
|
||||
templateLock={true}
|
||||
/>
|
||||
</section>
|
||||
</>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user