first commit
This commit is contained in:
45
wp-includes/blocks/file/block.json
Normal file
45
wp-includes/blocks/file/block.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"apiVersion": 2,
|
||||
"name": "core/file",
|
||||
"category": "media",
|
||||
"attributes": {
|
||||
"id": {
|
||||
"type": "number"
|
||||
},
|
||||
"href": {
|
||||
"type": "string"
|
||||
},
|
||||
"fileName": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "a:not([download])"
|
||||
},
|
||||
"textLinkHref": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "a:not([download])",
|
||||
"attribute": "href"
|
||||
},
|
||||
"textLinkTarget": {
|
||||
"type": "string",
|
||||
"source": "attribute",
|
||||
"selector": "a:not([download])",
|
||||
"attribute": "target"
|
||||
},
|
||||
"showDownloadButton": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
},
|
||||
"downloadButtonText": {
|
||||
"type": "string",
|
||||
"source": "html",
|
||||
"selector": "a[download]"
|
||||
}
|
||||
},
|
||||
"supports": {
|
||||
"anchor": true,
|
||||
"align": true
|
||||
},
|
||||
"editorStyle": "wp-block-file-editor",
|
||||
"style": "wp-block-file"
|
||||
}
|
||||
Reference in New Issue
Block a user