REMOVE deprecated heading variant registration and add core list block support to narrative card editor
This commit is contained in:
parent
fcc2839ad0
commit
1da3570ebe
|
|
@ -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 ",
|
|
||||||
// });
|
|
||||||
|
|
@ -187,6 +187,8 @@ export default function Edit({ attributes, setAttributes }) {
|
||||||
"core/image",
|
"core/image",
|
||||||
"carhop-blocks/cta",
|
"carhop-blocks/cta",
|
||||||
"carhop-blocks/cta-group",
|
"carhop-blocks/cta-group",
|
||||||
|
"core/list",
|
||||||
|
"core/list-item",
|
||||||
]}
|
]}
|
||||||
template={[
|
template={[
|
||||||
["core/heading", { content: "Lorem ipsum" }],
|
["core/heading", { content: "Lorem ipsum" }],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user