block.json in Gutenberg 10.5.3, at build/block-library/blocks/audio/block.json
| 1 | { |
| 2 | "apiVersion": 2, |
| 3 | "name": "core/audio", |
| 4 | "category": "media", |
| 5 | "attributes": { |
| 6 | "src": { |
| 7 | "type": "string", |
| 8 | "source": "attribute", |
| 9 | "selector": "audio", |
| 10 | "attribute": "src" |
| 11 | }, |
| 12 | "caption": { |
| 13 | "type": "string", |
| 14 | "source": "html", |
| 15 | "selector": "figcaption" |
| 16 | }, |
| 17 | "id": { |
| 18 | "type": "number" |
| 19 | }, |
| 20 | "autoplay": { |
| 21 | "type": "boolean", |
| 22 | "source": "attribute", |
| 23 | "selector": "audio", |
| 24 | "attribute": "autoplay" |
| 25 | }, |
| 26 | "loop": { |
| 27 | "type": "boolean", |
| 28 | "source": "attribute", |
| 29 | "selector": "audio", |
| 30 | "attribute": "loop" |
| 31 | }, |
| 32 | "preload": { |
| 33 | "type": "string", |
| 34 | "source": "attribute", |
| 35 | "selector": "audio", |
| 36 | "attribute": "preload" |
| 37 | } |
| 38 | }, |
| 39 | "supports": { |
| 40 | "anchor": true, |
| 41 | "align": true |
| 42 | }, |
| 43 | "editorStyle": "wp-block-audio-editor", |
| 44 | "style": "wp-block-audio" |
| 45 | } |
| 46 |