PluginProbe
Gutenberg / 18.9.0
Gutenberg v18.9.0
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
gutenberg / build / block-library / blocks / image / block.json

block.json in Gutenberg 18.9.0, at build/block-library/blocks/image/block.json

145 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 3,
4 "name": "core/image",
5 "title": "Image",
6 "category": "media",
7 "usesContext": [ "allowResize", "imageCrop", "fixedHeight" ],
8 "description": "Insert an image to make a visual statement.",
9 "keywords": [ "img", "photo", "picture" ],
10 "textdomain": "default",
11 "attributes": {
12 "blob": {
13 "type": "string",
14 "__experimentalRole": "local"
15 },
16 "url": {
17 "type": "string",
18 "source": "attribute",
19 "selector": "img",
20 "attribute": "src",
21 "__experimentalRole": "content"
22 },
23 "alt": {
24 "type": "string",
25 "source": "attribute",
26 "selector": "img",
27 "attribute": "alt",
28 "default": "",
29 "__experimentalRole": "content"
30 },
31 "caption": {
32 "type": "rich-text",
33 "source": "rich-text",
34 "selector": "figcaption",
35 "__experimentalRole": "content"
36 },
37 "lightbox": {
38 "type": "object",
39 "enabled": {
40 "type": "boolean"
41 }
42 },
43 "title": {
44 "type": "string",
45 "source": "attribute",
46 "selector": "img",
47 "attribute": "title",
48 "__experimentalRole": "content"
49 },
50 "href": {
51 "type": "string",
52 "source": "attribute",
53 "selector": "figure > a",
54 "attribute": "href",
55 "__experimentalRole": "content"
56 },
57 "rel": {
58 "type": "string",
59 "source": "attribute",
60 "selector": "figure > a",
61 "attribute": "rel"
62 },
63 "linkClass": {
64 "type": "string",
65 "source": "attribute",
66 "selector": "figure > a",
67 "attribute": "class"
68 },
69 "id": {
70 "type": "number",
71 "__experimentalRole": "content"
72 },
73 "width": {
74 "type": "string"
75 },
76 "height": {
77 "type": "string"
78 },
79 "aspectRatio": {
80 "type": "string"
81 },
82 "scale": {
83 "type": "string"
84 },
85 "sizeSlug": {
86 "type": "string"
87 },
88 "linkDestination": {
89 "type": "string"
90 },
91 "linkTarget": {
92 "type": "string",
93 "source": "attribute",
94 "selector": "figure > a",
95 "attribute": "target"
96 }
97 },
98 "supports": {
99 "interactivity": true,
100 "align": [ "left", "center", "right", "wide", "full" ],
101 "anchor": true,
102 "color": {
103 "text": false,
104 "background": false
105 },
106 "filter": {
107 "duotone": true
108 },
109 "spacing": {
110 "margin": true
111 },
112 "__experimentalBorder": {
113 "color": true,
114 "radius": true,
115 "width": true,
116 "__experimentalSkipSerialization": true,
117 "__experimentalDefaultControls": {
118 "color": true,
119 "radius": true,
120 "width": true
121 }
122 },
123 "shadow": {
124 "__experimentalSkipSerialization": true
125 }
126 },
127 "selectors": {
128 "border": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
129 "shadow": ".wp-block-image img, .wp-block-image .wp-block-image__crop-area, .wp-block-image .components-placeholder",
130 "filter": {
131 "duotone": ".wp-block-image img, .wp-block-image .components-placeholder"
132 }
133 },
134 "styles": [
135 {
136 "name": "default",
137 "label": "Default",
138 "isDefault": true
139 },
140 { "name": "rounded", "label": "Rounded" }
141 ],
142 "editorStyle": "wp-block-image-editor",
143 "style": "wp-block-image"
144 }
145