2020-07-01 08:29:03 -04:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2020-10-20 09:36:16 -04:00
|
|
|
"apiVersion": 2,
|
2020-07-01 08:29:03 -04:00
|
|
|
"name": "core/image",
|
2021-05-19 11:09:27 -04:00
|
|
|
"title": "Image",
|
2020-07-01 08:29:03 -04:00
|
|
|
"category": "media",
|
2021-11-08 09:29:21 -05:00
|
|
|
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
|
2021-05-19 11:09:27 -04:00
|
|
|
"description": "Insert an image to make a visual statement.",
|
|
|
|
"keywords": [ "img", "photo", "picture" ],
|
|
|
|
"textdomain": "default",
|
2020-07-01 08:29:03 -04:00
|
|
|
"attributes": {
|
|
|
|
"align": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"url": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "src",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"alt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
|
|
|
"attribute": "alt",
|
2022-09-20 11:43:29 -04:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"caption": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "html",
|
2022-09-20 11:43:29 -04:00
|
|
|
"selector": "figcaption",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"title": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "title",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"href": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "href",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"rel": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
|
|
|
"attribute": "rel"
|
|
|
|
},
|
|
|
|
"linkClass": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
|
|
|
"attribute": "class"
|
|
|
|
},
|
|
|
|
"id": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"type": "number",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"width": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"height": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"sizeSlug": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"linkDestination": {
|
2020-10-13 09:10:30 -04:00
|
|
|
"type": "string"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"linkTarget": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
|
|
|
"attribute": "target"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
2021-02-02 00:17:13 -05:00
|
|
|
"anchor": true,
|
2021-05-19 11:09:27 -04:00
|
|
|
"color": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"__experimentalDuotone": "img, .components-placeholder",
|
2021-05-19 11:09:27 -04:00
|
|
|
"text": false,
|
|
|
|
"background": false
|
|
|
|
},
|
2021-02-02 00:17:13 -05:00
|
|
|
"__experimentalBorder": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"color": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"radius": true,
|
2022-09-20 11:43:29 -04:00
|
|
|
"width": true,
|
|
|
|
"__experimentalSelector": "img, .wp-block-image__crop-area",
|
|
|
|
"__experimentalSkipSerialization": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"__experimentalDefaultControls": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
2022-04-12 11:12:47 -04:00
|
|
|
}
|
2021-02-02 00:17:13 -05:00
|
|
|
}
|
2021-01-27 21:04:13 -05:00
|
|
|
},
|
2021-05-19 11:09:27 -04:00
|
|
|
"styles": [
|
|
|
|
{
|
|
|
|
"name": "default",
|
|
|
|
"label": "Default",
|
|
|
|
"isDefault": true
|
|
|
|
},
|
|
|
|
{ "name": "rounded", "label": "Rounded" }
|
|
|
|
],
|
2021-01-27 21:04:13 -05:00
|
|
|
"editorStyle": "wp-block-image-editor",
|
|
|
|
"style": "wp-block-image"
|
2020-07-01 08:29:03 -04:00
|
|
|
}
|