build/scripts/block-library/embed
block.json
1.0 KB
7 months ago
block.json in Gutenberg 23.2.0, at build/scripts/block-library/embed/block.json
| 1 | { |
| 2 | "$schema": "https://schemas.wp.org/trunk/block.json", |
| 3 | "apiVersion": 3, |
| 4 | "name": "core/embed", |
| 5 | "title": "Embed", |
| 6 | "category": "embed", |
| 7 | "description": "Add a block that displays content pulled from other sites, like Twitter or YouTube.", |
| 8 | "textdomain": "default", |
| 9 | "attributes": { |
| 10 | "url": { |
| 11 | "type": "string", |
| 12 | "role": "content" |
| 13 | }, |
| 14 | "caption": { |
| 15 | "type": "rich-text", |
| 16 | "source": "rich-text", |
| 17 | "selector": "figcaption", |
| 18 | "role": "content" |
| 19 | }, |
| 20 | "type": { |
| 21 | "type": "string", |
| 22 | "role": "content" |
| 23 | }, |
| 24 | "providerNameSlug": { |
| 25 | "type": "string", |
| 26 | "role": "content" |
| 27 | }, |
| 28 | "allowResponsive": { |
| 29 | "type": "boolean", |
| 30 | "default": true |
| 31 | }, |
| 32 | "responsive": { |
| 33 | "type": "boolean", |
| 34 | "default": false, |
| 35 | "role": "content" |
| 36 | }, |
| 37 | "previewable": { |
| 38 | "type": "boolean", |
| 39 | "default": true, |
| 40 | "role": "content" |
| 41 | } |
| 42 | }, |
| 43 | "supports": { |
| 44 | "anchor": true, |
| 45 | "align": true, |
| 46 | "spacing": { |
| 47 | "margin": true |
| 48 | }, |
| 49 | "interactivity": { |
| 50 | "clientNavigation": true |
| 51 | } |
| 52 | }, |
| 53 | "editorStyle": "wp-block-embed-editor", |
| 54 | "style": "wp-block-embed" |
| 55 | } |
| 56 |