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