author | ymh <ymh.work@gmail.com> |
Fri, 05 Sep 2025 18:52:52 +0200 | |
changeset 22 | 8c2e4d02f4ef |
parent 21 | 48c4eec2b7e6 |
permissions | -rw-r--r-- |
16 | 1 |
{ |
19 | 2 |
"$schema": "https://schemas.wp.org/trunk/block.json", |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
3 |
"apiVersion": 3, |
16 | 4 |
"name": "core/media-text", |
18 | 5 |
"title": "Media & Text", |
16 | 6 |
"category": "media", |
18 | 7 |
"description": "Set media and words side-by-side for a richer layout.", |
8 |
"keywords": [ "image", "video" ], |
|
9 |
"textdomain": "default", |
|
16 | 10 |
"attributes": { |
11 |
"align": { |
|
12 |
"type": "string", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
13 |
"default": "none" |
16 | 14 |
}, |
15 |
"mediaAlt": { |
|
16 |
"type": "string", |
|
17 |
"source": "attribute", |
|
18 |
"selector": "figure img", |
|
19 |
"attribute": "alt", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
20 |
"default": "", |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
21 |
"role": "content" |
16 | 22 |
}, |
23 |
"mediaPosition": { |
|
24 |
"type": "string", |
|
25 |
"default": "left" |
|
26 |
}, |
|
27 |
"mediaId": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
28 |
"type": "number", |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
29 |
"role": "content" |
16 | 30 |
}, |
31 |
"mediaUrl": { |
|
32 |
"type": "string", |
|
33 |
"source": "attribute", |
|
34 |
"selector": "figure video,figure img", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
35 |
"attribute": "src", |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
36 |
"role": "content" |
16 | 37 |
}, |
38 |
"mediaLink": { |
|
39 |
"type": "string" |
|
40 |
}, |
|
41 |
"linkDestination": { |
|
42 |
"type": "string" |
|
43 |
}, |
|
44 |
"linkTarget": { |
|
45 |
"type": "string", |
|
46 |
"source": "attribute", |
|
47 |
"selector": "figure a", |
|
48 |
"attribute": "target" |
|
49 |
}, |
|
50 |
"href": { |
|
51 |
"type": "string", |
|
52 |
"source": "attribute", |
|
53 |
"selector": "figure a", |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
54 |
"attribute": "href", |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
55 |
"role": "content" |
16 | 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 |
"mediaType": { |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
70 |
"type": "string", |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
71 |
"role": "content" |
16 | 72 |
}, |
73 |
"mediaWidth": { |
|
74 |
"type": "number", |
|
75 |
"default": 50 |
|
76 |
}, |
|
18 | 77 |
"mediaSizeSlug": { |
78 |
"type": "string" |
|
79 |
}, |
|
16 | 80 |
"isStackedOnMobile": { |
81 |
"type": "boolean", |
|
82 |
"default": true |
|
83 |
}, |
|
84 |
"verticalAlignment": { |
|
85 |
"type": "string" |
|
86 |
}, |
|
87 |
"imageFill": { |
|
88 |
"type": "boolean" |
|
89 |
}, |
|
90 |
"focalPoint": { |
|
91 |
"type": "object" |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
92 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
93 |
"allowedBlocks": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
94 |
"type": "array" |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
95 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
96 |
"useFeaturedImage": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
97 |
"type": "boolean", |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
98 |
"default": false |
16 | 99 |
} |
100 |
}, |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
101 |
"usesContext": [ "postId", "postType" ], |
16 | 102 |
"supports": { |
103 |
"anchor": true, |
|
18 | 104 |
"align": [ "wide", "full" ], |
16 | 105 |
"html": false, |
22
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
106 |
"__experimentalBorder": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
107 |
"color": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
108 |
"radius": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
109 |
"style": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
110 |
"width": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
111 |
"__experimentalDefaultControls": { |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
112 |
"color": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
113 |
"radius": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
114 |
"style": true, |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
115 |
"width": true |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
116 |
} |
8c2e4d02f4ef
Update WordPress to latest version (6.7)
ymh <ymh.work@gmail.com>
parents:
21
diff
changeset
|
117 |
}, |
18 | 118 |
"color": { |
16 | 119 |
"gradients": true, |
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
120 |
"heading": true, |
19 | 121 |
"link": true, |
122 |
"__experimentalDefaultControls": { |
|
123 |
"background": true, |
|
124 |
"text": true |
|
125 |
} |
|
21
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
126 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
127 |
"spacing": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
128 |
"margin": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
129 |
"padding": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
130 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
131 |
"typography": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
132 |
"fontSize": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
133 |
"lineHeight": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
134 |
"__experimentalFontFamily": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
135 |
"__experimentalFontWeight": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
136 |
"__experimentalFontStyle": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
137 |
"__experimentalTextTransform": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
138 |
"__experimentalTextDecoration": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
139 |
"__experimentalLetterSpacing": true, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
140 |
"__experimentalDefaultControls": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
141 |
"fontSize": true |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
142 |
} |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
143 |
}, |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
144 |
"interactivity": { |
48c4eec2b7e6
Add CLAUDE.md documentation and sync WordPress core files
ymh <ymh.work@gmail.com>
parents:
19
diff
changeset
|
145 |
"clientNavigation": true |
16 | 146 |
} |
18 | 147 |
}, |
148 |
"editorStyle": "wp-block-media-text-editor", |
|
149 |
"style": "wp-block-media-text" |
|
16 | 150 |
} |