first commit
This commit is contained in:
132
wp-includes/blocks/table/block.json
Normal file
132
wp-includes/blocks/table/block.json
Normal file
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "core/table",
|
||||
"category": "text",
|
||||
"attributes": {
|
||||
"hasFixedLayout": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"backgroundColor": {
|
||||
"type": "string"
|
||||
},
|
||||
"caption": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "figcaption",
|
||||
"default": ""
|
||||
},
|
||||
"head": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": "thead tr",
|
||||
"query": {
|
||||
"cells": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": "td,th",
|
||||
"query": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"source": "html"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"default": "td",
|
||||
"source": "tag"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"attribute": "scope"
|
||||
},
|
||||
"align": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"attribute": "data-align"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": "tbody tr",
|
||||
"query": {
|
||||
"cells": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": "td,th",
|
||||
"query": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"source": "html"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"default": "td",
|
||||
"source": "tag"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"attribute": "scope"
|
||||
},
|
||||
"align": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"attribute": "data-align"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"foot": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": "tfoot tr",
|
||||
"query": {
|
||||
"cells": {
|
||||
"type": "array",
|
||||
"default": [],
|
||||
"source": "query",
|
||||
"selector": "td,th",
|
||||
"query": {
|
||||
"content": {
|
||||
"type": "string",
|
||||
"source": "html"
|
||||
},
|
||||
"tag": {
|
||||
"type": "string",
|
||||
"default": "td",
|
||||
"source": "tag"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"attribute": "scope"
|
||||
},
|
||||
"align": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"attribute": "data-align"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true,
|
||||
"__experimentalSelector": ".wp-block-table > table"
|
||||
},
|
||||
"editorStyle": "wp-block-table-editor",
|
||||
"style": "wp-block-table"
|
||||
}
|
||||
Reference in New Issue
Block a user