PluginProbe
Gutenberg / 19.6.0
Gutenberg v19.6.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / build / block-library / blocks / file / block.json

block.json in Gutenberg 19.6.0, at build/block-library/blocks/file/block.json

98 lines 1.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "core/file",
5 "title": "File",
6 "category": "media",
7 "description": "Add a link to a downloadable file.",
8 "keywords": [ "document", "pdf", "download" ],
9 "textdomain": "default",
10 "attributes": {
11 "id": {
12 "type": "number"
13 },
14 "blob": {
15 "type": "string",
16 "role": "local"
17 },
18 "href": {
19 "type": "string",
20 "role": "content"
21 },
22 "fileId": {
23 "type": "string",
24 "source": "attribute",
25 "selector": "a:not([download])",
26 "attribute": "id"
27 },
28 "fileName": {
29 "type": "rich-text",
30 "source": "rich-text",
31 "selector": "a:not([download])",
32 "role": "content"
33 },
34 "textLinkHref": {
35 "type": "string",
36 "source": "attribute",
37 "selector": "a:not([download])",
38 "attribute": "href",
39 "role": "content"
40 },
41 "textLinkTarget": {
42 "type": "string",
43 "source": "attribute",
44 "selector": "a:not([download])",
45 "attribute": "target"
46 },
47 "showDownloadButton": {
48 "type": "boolean",
49 "default": true
50 },
51 "downloadButtonText": {
52 "type": "rich-text",
53 "source": "rich-text",
54 "selector": "a[download]",
55 "role": "content"
56 },
57 "displayPreview": {
58 "type": "boolean"
59 },
60 "previewHeight": {
61 "type": "number",
62 "default": 600
63 }
64 },
65 "supports": {
66 "anchor": true,
67 "align": true,
68 "spacing": {
69 "margin": true,
70 "padding": true
71 },
72 "color": {
73 "gradients": true,
74 "link": true,
75 "text": false,
76 "__experimentalDefaultControls": {
77 "background": true,
78 "link": true
79 }
80 },
81 "__experimentalBorder": {
82 "radius": true,
83 "color": true,
84 "width": true,
85 "style": true,
86 "__experimentalDefaultControls": {
87 "radius": true,
88 "color": true,
89 "width": true,
90 "style": true
91 }
92 },
93 "interactivity": true
94 },
95 "editorStyle": "wp-block-file-editor",
96 "style": "wp-block-file"
97 }
98