author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:40:08 +0200 | |
changeset 21 | 48c4eec2b7e6 |
parent 19 | 3d72ae0968f4 |
child 22 | 8c2e4d02f4ef |
permissions | -rw-r--r-- |
16 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
16 | 4 |
"name": "core/file", |
18 | 5 |
"title": "File", |
16 | 6 |
"category": "media", |
18 | 7 |
"description": "Add a link to a downloadable file.", |
8 |
"keywords": [ "document", "pdf", "download" ], |
|
9 |
"textdomain": "default", |
|
16 | 10 |
"attributes": { |
11 |
"id": { |
|
12 |
"type": "number" |
|
13 |
}, |
|
14 |
"href": { |
|
15 |
"type": "string" |
|
16 |
}, |
|
19 | 17 |
"fileId": { |
18 |
"type": "string", |
|
19 |
"source": "attribute", |
|
20 |
"selector": "a:not([download])", |
|
21 |
"attribute": "id" |
|
22 |
}, |
|
16 | 23 |
"fileName": { |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
24 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
25 |
"source": "rich-text", |
16 | 26 |
"selector": "a:not([download])" |
27 |
}, |
|
28 |
"textLinkHref": { |
|
29 |
"type": "string", |
|
30 |
"source": "attribute", |
|
31 |
"selector": "a:not([download])", |
|
32 |
"attribute": "href" |
|
33 |
}, |
|
34 |
"textLinkTarget": { |
|
35 |
"type": "string", |
|
36 |
"source": "attribute", |
|
37 |
"selector": "a:not([download])", |
|
38 |
"attribute": "target" |
|
39 |
}, |
|
40 |
"showDownloadButton": { |
|
41 |
"type": "boolean", |
|
42 |
"default": true |
|
43 |
}, |
|
44 |
"downloadButtonText": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
45 |
"type": "rich-text", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
46 |
"source": "rich-text", |
16 | 47 |
"selector": "a[download]" |
18 | 48 |
}, |
49 |
"displayPreview": { |
|
50 |
"type": "boolean" |
|
51 |
}, |
|
52 |
"previewHeight": { |
|
53 |
"type": "number", |
|
54 |
"default": 600 |
|
16 | 55 |
} |
56 |
}, |
|
57 |
"supports": { |
|
58 |
"anchor": true, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
59 |
"align": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
60 |
"spacing": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
61 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
62 |
"padding": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
63 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
64 |
"color": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
65 |
"gradients": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
66 |
"link": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
67 |
"text": false, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
68 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
69 |
"background": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
70 |
"link": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
71 |
} |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
72 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
73 |
"interactivity": true |
18 | 74 |
}, |
75 |
"editorStyle": "wp-block-file-editor", |
|
76 |
"style": "wp-block-file" |
|
16 | 77 |
} |