block.json in Gutenberg 7.4.0, at build/block-library/blocks/file/block.json
| 1 | { |
| 2 | "name": "core/file", |
| 3 | "category": "common", |
| 4 | "attributes": { |
| 5 | "id": { |
| 6 | "type": "number" |
| 7 | }, |
| 8 | "href": { |
| 9 | "type": "string" |
| 10 | }, |
| 11 | "fileName": { |
| 12 | "type": "string", |
| 13 | "source": "html", |
| 14 | "selector": "a:not([download])" |
| 15 | }, |
| 16 | "textLinkHref": { |
| 17 | "type": "string", |
| 18 | "source": "attribute", |
| 19 | "selector": "a:not([download])", |
| 20 | "attribute": "href" |
| 21 | }, |
| 22 | "textLinkTarget": { |
| 23 | "type": "string", |
| 24 | "source": "attribute", |
| 25 | "selector": "a:not([download])", |
| 26 | "attribute": "target" |
| 27 | }, |
| 28 | "showDownloadButton": { |
| 29 | "type": "boolean", |
| 30 | "default": true |
| 31 | }, |
| 32 | "downloadButtonText": { |
| 33 | "type": "string", |
| 34 | "source": "html", |
| 35 | "selector": "a[download]" |
| 36 | } |
| 37 | } |
| 38 | } |
| 39 |