REMOVE deprecated heading variant registration and add core list block support to narrative card editor

This commit is contained in:
Antoine M 2025-12-11 15:33:47 +01:00
parent fcc2839ad0
commit 1da3570ebe
2 changed files with 2 additions and 19 deletions

View File

@ -1,19 +0,0 @@
// wp.blocks.registerBlockVariation("core/heading", {
// name: "heading-variant",
// title: "Titre + trait ",
// attributes: {
// className: "is-styled-stroked-after",
// },
// scope: ["inserter", "block", "transform"],
// });
wp.blocks.registerBlockStyle("core/heading", {
name: "stroked-after",
label: "Titre + trait ",
});
// wp.blocks.registerBlockStyle("carhop-blocks/heading", {
// name: "stroked-after",
// label: "Titre + trait ",
// });

View File

@ -187,6 +187,8 @@ export default function Edit({ attributes, setAttributes }) {
"core/image",
"carhop-blocks/cta",
"carhop-blocks/cta-group",
"core/list",
"core/list-item",
]}
template={[
["core/heading", { content: "Lorem ipsum" }],