PluginProbe ʕ •ᴥ•ʔ
GenerateBlocks / 1.5.2
GenerateBlocks v1.5.2
trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.1.2 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 2.0.0 2.0.1 2.0.2 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.3.0
generateblocks / src / blocks / image / block.json
generateblocks / src / blocks / image Last commit date
components 4 years ago css 4 years ago block.json 4 years ago edit.js 4 years ago editor.scss 4 years ago index.js 4 years ago save.js 4 years ago transforms.js 4 years ago
block.json
124 lines
1 {
2 "$schema": "https://schemas.wp.org/trunk/block.json",
3 "apiVersion": 2,
4 "name": "generateblocks/image",
5 "title": "Image",
6 "category": "generateblocks",
7 "description": "Add images to your content to make a visual statement.",
8 "textdomain": "generateblocks",
9 "attributes": {
10 "uniqueId": {
11 "type": "string"
12 },
13 "mediaId": {
14 "type": "number"
15 },
16 "mediaUrl": {
17 "type": "string",
18 "source": "attribute",
19 "selector": "img",
20 "attribute": "src"
21 },
22 "alt": {
23 "type": "string",
24 "source": "attribute",
25 "selector": "img",
26 "attribute": "alt"
27 },
28 "title": {
29 "type": "string",
30 "source": "attribute",
31 "selector": "img",
32 "attribute": "title"
33 },
34 "href": {
35 "type": "string",
36 "source": "attribute",
37 "selector": "figure > a",
38 "attribute": "href"
39 },
40 "openInNewWindow": {
41 "type": "boolean",
42 "default": false
43 },
44 "relNoFollow": {
45 "type": "boolean",
46 "default": false
47 },
48 "relSponsored": {
49 "type": "boolean",
50 "default": false
51 },
52 "sizeSlug": {
53 "type": "string",
54 "default": ""
55 },
56 "width": {
57 "type": "string",
58 "default": ""
59 },
60 "widthTablet": {
61 "type": "string",
62 "default": ""
63 },
64 "widthMobile": {
65 "type": "string",
66 "default": ""
67 },
68 "height": {
69 "type": "string",
70 "default": ""
71 },
72 "heightTablet": {
73 "type": "string",
74 "default": ""
75 },
76 "heightMobile": {
77 "type": "string",
78 "default": ""
79 },
80 "objectFit": {
81 "type": "string",
82 "default": ""
83 },
84 "objectFitTablet": {
85 "type": "string",
86 "default": ""
87 },
88 "objectFitMobile": {
89 "type": "string",
90 "default": ""
91 },
92 "borderColor": {
93 "type": "string",
94 "default": ""
95 },
96 "anchor": {
97 "type": "string",
98 "default": ""
99 },
100 "align": {
101 "type": "string",
102 "default": ""
103 },
104 "alignment": {
105 "type": "string",
106 "default": ""
107 },
108 "alignmentTablet": {
109 "type": "string",
110 "default": ""
111 },
112 "alignmentMobile": {
113 "type": "string",
114 "default": ""
115 }
116 },
117 "usesContext": [ "postId", "postType" ],
118 "supports": {
119 "className": false,
120 "customClassName": true,
121 "html": false
122 }
123 }
124