kollapsminoriteten/wp-includes/blocks/file/block.json

98 lines
1.8 KiB
JSON
Raw Normal View History

2020-09-15 14:29:22 +02:00
{
2022-06-16 14:03:35 +02:00
"$schema": "https://schemas.wp.org/trunk/block.json",
2023-09-26 10:33:34 +02:00
"apiVersion": 3,
2020-09-15 14:29:22 +02:00
"name": "core/file",
2021-07-23 11:58:50 +02:00
"title": "File",
2020-09-15 14:29:22 +02:00
"category": "media",
2021-07-23 11:58:50 +02:00
"description": "Add a link to a downloadable file.",
"keywords": [ "document", "pdf", "download" ],
"textdomain": "default",
2020-09-15 14:29:22 +02:00
"attributes": {
"id": {
"type": "number"
},
2025-02-28 08:42:11 +01:00
"blob": {
"type": "string",
"role": "local"
},
2020-09-15 14:29:22 +02:00
"href": {
2025-04-25 12:30:07 +02:00
"type": "string",
"role": "content"
2020-09-15 14:29:22 +02:00
},
2022-04-02 10:26:41 +02:00
"fileId": {
"type": "string",
"source": "attribute",
"selector": "a:not([download])",
"attribute": "id"
},
2020-09-15 14:29:22 +02:00
"fileName": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
"source": "rich-text",
2025-04-25 12:30:07 +02:00
"selector": "a:not([download])",
"role": "content"
2020-09-15 14:29:22 +02:00
},
"textLinkHref": {
"type": "string",
"source": "attribute",
"selector": "a:not([download])",
2025-04-25 12:30:07 +02:00
"attribute": "href",
"role": "content"
2020-09-15 14:29:22 +02:00
},
"textLinkTarget": {
"type": "string",
"source": "attribute",
"selector": "a:not([download])",
"attribute": "target"
},
"showDownloadButton": {
"type": "boolean",
"default": true
},
"downloadButtonText": {
2024-04-17 11:32:24 +02:00
"type": "rich-text",
"source": "rich-text",
2025-04-25 12:30:07 +02:00
"selector": "a[download]",
"role": "content"
2021-07-23 11:58:50 +02:00
},
"displayPreview": {
"type": "boolean"
},
"previewHeight": {
"type": "number",
"default": 600
2020-09-15 14:29:22 +02:00
}
},
"supports": {
"anchor": true,
2023-09-26 10:33:34 +02:00
"align": true,
2023-12-07 09:44:11 +01:00
"spacing": {
"margin": true,
"padding": true
},
2023-09-26 10:33:34 +02:00
"color": {
"gradients": true,
"link": true,
"text": false,
"__experimentalDefaultControls": {
"background": true,
"link": true
}
2023-12-07 09:44:11 +01:00
},
2025-02-28 08:42:11 +01:00
"__experimentalBorder": {
"radius": true,
"color": true,
"width": true,
"style": true,
"__experimentalDefaultControls": {
"radius": true,
"color": true,
"width": true,
"style": true
}
},
2023-12-07 09:44:11 +01:00
"interactivity": true
2021-04-27 08:32:47 +02:00
},
"editorStyle": "wp-block-file-editor",
"style": "wp-block-file"
2020-09-15 14:29:22 +02:00
}