2020-07-01 08:29:03 -04:00
|
|
|
{
|
2022-04-12 11:12:47 -04:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2020-10-20 09:36:16 -04:00
|
|
|
"apiVersion": 2,
|
2020-07-01 08:29:03 -04:00
|
|
|
"name": "core/media-text",
|
2021-05-19 11:09:27 -04:00
|
|
|
"title": "Media & Text",
|
2020-07-01 08:29:03 -04:00
|
|
|
"category": "media",
|
2021-05-19 11:09:27 -04:00
|
|
|
"description": "Set media and words side-by-side for a richer layout.",
|
|
|
|
"keywords": [ "image", "video" ],
|
|
|
|
"textdomain": "default",
|
2020-07-01 08:29:03 -04:00
|
|
|
"attributes": {
|
|
|
|
"align": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "wide"
|
|
|
|
},
|
|
|
|
"mediaAlt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure img",
|
|
|
|
"attribute": "alt",
|
2022-09-20 11:43:29 -04:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"mediaPosition": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "left"
|
|
|
|
},
|
|
|
|
"mediaId": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"type": "number",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"mediaUrl": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure video,figure img",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "src",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"mediaLink": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"linkDestination": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"linkTarget": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure a",
|
|
|
|
"attribute": "target"
|
|
|
|
},
|
|
|
|
"href": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure a",
|
2022-09-20 11:43:29 -04:00
|
|
|
"attribute": "href",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"rel": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure a",
|
|
|
|
"attribute": "rel"
|
|
|
|
},
|
|
|
|
"linkClass": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure a",
|
|
|
|
"attribute": "class"
|
|
|
|
},
|
|
|
|
"mediaType": {
|
2022-09-20 11:43:29 -04:00
|
|
|
"type": "string",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 08:29:03 -04:00
|
|
|
},
|
|
|
|
"mediaWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 50
|
|
|
|
},
|
2020-10-13 09:10:30 -04:00
|
|
|
"mediaSizeSlug": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-07-01 08:29:03 -04:00
|
|
|
"isStackedOnMobile": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"verticalAlignment": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"imageFill": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"focalPoint": {
|
|
|
|
"type": "object"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
2020-07-07 10:43:35 -04:00
|
|
|
"anchor": true,
|
2020-10-13 09:10:30 -04:00
|
|
|
"align": [ "wide", "full" ],
|
2020-07-01 08:29:03 -04:00
|
|
|
"html": false,
|
2020-10-20 09:36:16 -04:00
|
|
|
"color": {
|
2020-07-01 08:29:03 -04:00
|
|
|
"gradients": true,
|
2022-04-12 11:12:47 -04:00
|
|
|
"link": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"background": true,
|
|
|
|
"text": true
|
|
|
|
}
|
2022-09-20 11:43:29 -04:00
|
|
|
},
|
|
|
|
"spacing": {
|
|
|
|
"margin": true,
|
|
|
|
"padding": true
|
|
|
|
},
|
|
|
|
"typography": {
|
|
|
|
"fontSize": true,
|
|
|
|
"lineHeight": true,
|
|
|
|
"__experimentalFontFamily": true,
|
|
|
|
"__experimentalFontWeight": true,
|
|
|
|
"__experimentalFontStyle": true,
|
|
|
|
"__experimentalTextTransform": true,
|
|
|
|
"__experimentalTextDecoration": true,
|
|
|
|
"__experimentalLetterSpacing": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"fontSize": true
|
|
|
|
}
|
2020-07-01 08:29:03 -04:00
|
|
|
}
|
2021-01-27 21:04:13 -05:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-media-text-editor",
|
|
|
|
"style": "wp-block-media-text"
|
2020-07-01 08:29:03 -04:00
|
|
|
}
|