kollapsminoriteten/wp-includes/blocks/image/block.json

100 lines
1.8 KiB
JSON
Raw Normal View History

2020-09-15 14:29:22 +02:00
{
2020-12-10 14:06:04 +01:00
"apiVersion": 2,
2020-09-15 14:29:22 +02:00
"name": "core/image",
2021-07-23 11:58:50 +02:00
"title": "Image",
2020-09-15 14:29:22 +02:00
"category": "media",
2022-04-02 10:26:41 +02:00
"usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
2021-07-23 11:58:50 +02:00
"description": "Insert an image to make a visual statement.",
"keywords": [ "img", "photo", "picture" ],
"textdomain": "default",
2020-09-15 14:29:22 +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-12-10 14:06:04 +01:00
"type": "string"
2020-09-15 14:29:22 +02:00
},
"linkTarget": {
"type": "string",
"source": "attribute",
"selector": "figure > a",
"attribute": "target"
}
},
"supports": {
2021-04-27 08:32:47 +02:00
"anchor": true,
2021-07-23 11:58:50 +02:00
"color": {
"__experimentalDuotone": "img",
"text": false,
"background": false
},
2021-04-27 08:32:47 +02:00
"__experimentalBorder": {
"radius": true
}
},
2021-07-23 11:58:50 +02:00
"styles": [
{
"name": "default",
"label": "Default",
"isDefault": true
},
{ "name": "rounded", "label": "Rounded" }
],
2021-04-27 08:32:47 +02:00
"editorStyle": "wp-block-image-editor",
"style": "wp-block-image"
2020-09-15 14:29:22 +02:00
}