2020-07-01 14:29:03 +02:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 16:24:19 +02:00
|
|
|
"apiVersion": 3,
|
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",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "src",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"alt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
|
|
|
"attribute": "alt",
|
2022-09-20 17:43:29 +02:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"caption": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "html",
|
2022-09-20 17:43:29 +02:00
|
|
|
"selector": "figcaption",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"title": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "img",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "title",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"href": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure > a",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "href",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02: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 17:43:29 +02:00
|
|
|
"type": "number",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"width": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
|
|
|
"height": {
|
|
|
|
"type": "number"
|
|
|
|
},
|
2023-06-27 16:24:19 +02:00
|
|
|
"aspectRatio": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"scale": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-07-01 14:29:03 +02:00
|
|
|
"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,
|
2023-06-27 16:24:19 +02:00
|
|
|
"behaviors": {
|
|
|
|
"lightbox": true
|
|
|
|
},
|
2021-05-19 17:09:27 +02:00
|
|
|
"color": {
|
|
|
|
"text": false,
|
|
|
|
"background": false
|
|
|
|
},
|
2023-06-27 16:24:19 +02:00
|
|
|
"filter": {
|
|
|
|
"duotone": true
|
|
|
|
},
|
2021-02-02 06:17:13 +01:00
|
|
|
"__experimentalBorder": {
|
2022-09-20 17:43:29 +02:00
|
|
|
"color": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"radius": true,
|
2022-09-20 17:43:29 +02:00
|
|
|
"width": true,
|
|
|
|
"__experimentalSkipSerialization": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"__experimentalDefaultControls": {
|
2022-09-20 17:43:29 +02:00
|
|
|
"color": true,
|
|
|
|
"radius": true,
|
|
|
|
"width": true
|
2022-04-12 17:12:47 +02:00
|
|
|
}
|
2021-02-02 06:17:13 +01:00
|
|
|
}
|
2021-01-28 03:04:13 +01:00
|
|
|
},
|
2023-06-27 16:24:19 +02:00
|
|
|
"selectors": {
|
|
|
|
"border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
|
|
|
|
"filter": {
|
|
|
|
"duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
}
|