Editor: Register core blocks on the server

Exposes all core blocks (excluding embeds) on the server to be used with the REST API block types endpoint.

Props spacedmonkey, timothyblynjacobs.
Fixes #50263.



git-svn-id: https://develop.svn.wordpress.org/trunk@48262 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Greg Ziółkowski
2020-07-01 12:27:10 +00:00
parent ac7c4e270b
commit f7d617cfb8
33 changed files with 1167 additions and 18 deletions
@@ -0,0 +1,38 @@
{
"name": "core/pullquote",
"category": "text",
"attributes": {
"value": {
"type": "string",
"source": "html",
"selector": "blockquote",
"multiline": "p"
},
"citation": {
"type": "string",
"source": "html",
"selector": "cite",
"default": ""
},
"mainColor": {
"type": "string"
},
"customMainColor": {
"type": "string"
},
"textColor": {
"type": "string"
},
"customTextColor": {
"type": "string"
}
},
"supports": {
"align": [
"left",
"right",
"wide",
"full"
]
}
}