updating block with core blocks
This commit is contained in:
parent
d2ca595bd9
commit
89052b172e
|
|
@ -1 +1 @@
|
|||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6ca461874bc5f11cea56');
|
||||
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '0313ca693e8c9b6cd60a');
|
||||
|
|
|
|||
|
|
@ -166,13 +166,14 @@ function Edit({
|
|||
className: `section_titling section_titling--${textAlign}`
|
||||
})
|
||||
}, (0,react__WEBPACK_IMPORTED_MODULE_0__.createElement)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_3__.InnerBlocks, {
|
||||
allowedBlocks: ["core/paragraph", "core/list", "core/heading"],
|
||||
templateLock: "contentOnly",
|
||||
allowedBlocks: ["core/heading", "homegrade-content-blocks/content-heading", "core/paragraph"],
|
||||
templateLock: "insert",
|
||||
template: [["core/heading", {
|
||||
placeholder: "Titre de section",
|
||||
level: 3,
|
||||
className: "section_titling__title"
|
||||
}], ["core/paragraph", {
|
||||
placeholder: "Tapez votre sous-titre...",
|
||||
className: "section_titling__subtitle"
|
||||
}]]
|
||||
})));
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -51,8 +51,12 @@ export default function Edit({ attributes, setAttributes, clientId }) {
|
|||
})}
|
||||
>
|
||||
<InnerBlocks
|
||||
allowedBlocks={["core/paragraph", "core/list", "core/heading"]}
|
||||
templateLock="contentOnly"
|
||||
allowedBlocks={[
|
||||
"core/heading",
|
||||
"homegrade-content-blocks/content-heading",
|
||||
"core/paragraph",
|
||||
]}
|
||||
templateLock="insert"
|
||||
template={[
|
||||
[
|
||||
"core/heading",
|
||||
|
|
@ -62,7 +66,13 @@ export default function Edit({ attributes, setAttributes, clientId }) {
|
|||
className: "section_titling__title",
|
||||
},
|
||||
],
|
||||
["core/paragraph", { className: "section_titling__subtitle" }],
|
||||
[
|
||||
"core/paragraph",
|
||||
{
|
||||
placeholder: "Tapez votre sous-titre...",
|
||||
className: "section_titling__subtitle",
|
||||
},
|
||||
],
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user