block.json in Gutenberg 7.4.0, at build/block-library/blocks/image/block.json
| 1 | { |
| 2 | "name": "core/image", |
| 3 | "category": "common", |
| 4 | "attributes": { |
| 5 | "align": { |
| 6 | "type": "string" |
| 7 | }, |
| 8 | "url": { |
| 9 | "type": "string", |
| 10 | "source": "attribute", |
| 11 | "selector": "img", |
| 12 | "attribute": "src" |
| 13 | }, |
| 14 | "alt": { |
| 15 | "type": "string", |
| 16 | "source": "attribute", |
| 17 | "selector": "img", |
| 18 | "attribute": "alt", |
| 19 | "default": "" |
| 20 | }, |
| 21 | "caption": { |
| 22 | "type": "string", |
| 23 | "source": "html", |
| 24 | "selector": "figcaption" |
| 25 | }, |
| 26 | "title": { |
| 27 | "type": "string", |
| 28 | "source": "attribute", |
| 29 | "selector": "img", |
| 30 | "attribute": "title" |
| 31 | }, |
| 32 | "href": { |
| 33 | "type": "string", |
| 34 | "source": "attribute", |
| 35 | "selector": "figure > a", |
| 36 | "attribute": "href" |
| 37 | }, |
| 38 | "rel": { |
| 39 | "type": "string", |
| 40 | "source": "attribute", |
| 41 | "selector": "figure > a", |
| 42 | "attribute": "rel" |
| 43 | }, |
| 44 | "linkClass": { |
| 45 | "type": "string", |
| 46 | "source": "attribute", |
| 47 | "selector": "figure > a", |
| 48 | "attribute": "class" |
| 49 | }, |
| 50 | "id": { |
| 51 | "type": "number" |
| 52 | }, |
| 53 | "width": { |
| 54 | "type": "number" |
| 55 | }, |
| 56 | "height": { |
| 57 | "type": "number" |
| 58 | }, |
| 59 | "sizeSlug": { |
| 60 | "type": "string" |
| 61 | }, |
| 62 | "linkDestination": { |
| 63 | "type": "string", |
| 64 | "default": "none" |
| 65 | }, |
| 66 | "linkTarget": { |
| 67 | "type": "string", |
| 68 | "source": "attribute", |
| 69 | "selector": "figure > a", |
| 70 | "attribute": "target" |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 |