2020-07-01 14:29:03 +02:00
|
|
|
{
|
2022-04-12 17:12:47 +02:00
|
|
|
"$schema": "https://schemas.wp.org/trunk/block.json",
|
2023-06-27 16:24:19 +02:00
|
|
|
"apiVersion": 3,
|
2020-07-01 14:29:03 +02:00
|
|
|
"name": "core/media-text",
|
2021-05-19 17:09:27 +02:00
|
|
|
"title": "Media & Text",
|
2020-07-01 14:29:03 +02:00
|
|
|
"category": "media",
|
2021-05-19 17:09:27 +02:00
|
|
|
"description": "Set media and words side-by-side for a richer layout.",
|
|
|
|
"keywords": [ "image", "video" ],
|
|
|
|
"textdomain": "default",
|
2020-07-01 14:29:03 +02:00
|
|
|
"attributes": {
|
|
|
|
"align": {
|
|
|
|
"type": "string",
|
2023-06-27 16:24:19 +02:00
|
|
|
"default": "none"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"mediaAlt": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure img",
|
|
|
|
"attribute": "alt",
|
2022-09-20 17:43:29 +02:00
|
|
|
"default": "",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"mediaPosition": {
|
|
|
|
"type": "string",
|
|
|
|
"default": "left"
|
|
|
|
},
|
|
|
|
"mediaId": {
|
2022-09-20 17:43:29 +02:00
|
|
|
"type": "number",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"mediaUrl": {
|
|
|
|
"type": "string",
|
|
|
|
"source": "attribute",
|
|
|
|
"selector": "figure video,figure img",
|
2022-09-20 17:43:29 +02:00
|
|
|
"attribute": "src",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02: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 17:43:29 +02:00
|
|
|
"attribute": "href",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02: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 17:43:29 +02:00
|
|
|
"type": "string",
|
|
|
|
"__experimentalRole": "content"
|
2020-07-01 14:29:03 +02:00
|
|
|
},
|
|
|
|
"mediaWidth": {
|
|
|
|
"type": "number",
|
|
|
|
"default": 50
|
|
|
|
},
|
2020-10-13 15:10:30 +02:00
|
|
|
"mediaSizeSlug": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
2020-07-01 14:29:03 +02:00
|
|
|
"isStackedOnMobile": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": true
|
|
|
|
},
|
|
|
|
"verticalAlignment": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"imageFill": {
|
|
|
|
"type": "boolean"
|
|
|
|
},
|
|
|
|
"focalPoint": {
|
|
|
|
"type": "object"
|
2023-06-27 16:24:19 +02:00
|
|
|
},
|
|
|
|
"allowedBlocks": {
|
|
|
|
"type": "array"
|
2020-07-01 14:29:03 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"supports": {
|
2020-07-07 16:43:35 +02:00
|
|
|
"anchor": true,
|
2020-10-13 15:10:30 +02:00
|
|
|
"align": [ "wide", "full" ],
|
2020-07-01 14:29:03 +02:00
|
|
|
"html": false,
|
2020-10-20 15:36:16 +02:00
|
|
|
"color": {
|
2020-07-01 14:29:03 +02:00
|
|
|
"gradients": true,
|
2022-04-12 17:12:47 +02:00
|
|
|
"link": true,
|
|
|
|
"__experimentalDefaultControls": {
|
|
|
|
"background": true,
|
|
|
|
"text": true
|
|
|
|
}
|
2022-09-20 17:43:29 +02: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 14:29:03 +02:00
|
|
|
}
|
2021-01-28 03:04:13 +01:00
|
|
|
},
|
|
|
|
"editorStyle": "wp-block-media-text-editor",
|
|
|
|
"style": "wp-block-media-text"
|
2020-07-01 14:29:03 +02:00
|
|
|
}
|