Add block.json file support + fields config.

This commit is contained in:
roman committed 2022-09-04 10:29:16 +03:00
1 parent 33dbe48a2c
commit 190800cc80
6 files changed
+308 -3

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
{
"name": "<%= blockGroupName %>/<%= blockFilename %>",
"version": "1.0.0",
"title": "<%= title %>",
"categories": [],
"icon": "shortcode",
"preview_image": "",
"field_groups": [
{
"name": "content",
"label": "Content",
"fields": {
"title": {
"type": "text",
"label": "Title"
},
"content": {
"type": "wysiwyg",
"label": "Content"
},
"cta": {
"type": "link",
"label": "CTA"
}
}
},
{
"name": "styling",
"label": "Styling",
"fields": {
}
}
]
}