16
|
1 |
{ |
19
|
2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
18
|
3 |
"apiVersion": 2, |
16
|
4 |
"name": "core/audio", |
18
|
5 |
"title": "Audio", |
16
|
6 |
"category": "media", |
18
|
7 |
"description": "Embed a simple audio player.", |
|
8 |
"keywords": [ "music", "sound", "podcast", "recording" ], |
|
9 |
"textdomain": "default", |
16
|
10 |
"attributes": { |
|
11 |
"src": { |
|
12 |
"type": "string", |
|
13 |
"source": "attribute", |
|
14 |
"selector": "audio", |
|
15 |
"attribute": "src" |
|
16 |
}, |
|
17 |
"caption": { |
|
18 |
"type": "string", |
|
19 |
"source": "html", |
|
20 |
"selector": "figcaption" |
|
21 |
}, |
|
22 |
"id": { |
|
23 |
"type": "number" |
|
24 |
}, |
|
25 |
"autoplay": { |
|
26 |
"type": "boolean", |
|
27 |
"source": "attribute", |
|
28 |
"selector": "audio", |
|
29 |
"attribute": "autoplay" |
|
30 |
}, |
|
31 |
"loop": { |
|
32 |
"type": "boolean", |
|
33 |
"source": "attribute", |
|
34 |
"selector": "audio", |
|
35 |
"attribute": "loop" |
|
36 |
}, |
|
37 |
"preload": { |
|
38 |
"type": "string", |
|
39 |
"source": "attribute", |
|
40 |
"selector": "audio", |
|
41 |
"attribute": "preload" |
|
42 |
} |
|
43 |
}, |
|
44 |
"supports": { |
|
45 |
"anchor": true, |
18
|
46 |
"align": true |
|
47 |
}, |
|
48 |
"editorStyle": "wp-block-audio-editor", |
|
49 |
"style": "wp-block-audio" |
16
|
50 |
} |