You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

130 lines
2.6 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/media-text",
  5. "title": "Media & Text",
  6. "category": "media",
  7. "description": "Set media and words side-by-side for a richer layout.",
  8. "keywords": [ "image", "video" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "align": {
  12. "type": "string",
  13. "default": "none"
  14. },
  15. "mediaAlt": {
  16. "type": "string",
  17. "source": "attribute",
  18. "selector": "figure img",
  19. "attribute": "alt",
  20. "default": "",
  21. "__experimentalRole": "content"
  22. },
  23. "mediaPosition": {
  24. "type": "string",
  25. "default": "left"
  26. },
  27. "mediaId": {
  28. "type": "number",
  29. "__experimentalRole": "content"
  30. },
  31. "mediaUrl": {
  32. "type": "string",
  33. "source": "attribute",
  34. "selector": "figure video,figure img",
  35. "attribute": "src",
  36. "__experimentalRole": "content"
  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",
  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. "mediaType": {
  70. "type": "string",
  71. "__experimentalRole": "content"
  72. },
  73. "mediaWidth": {
  74. "type": "number",
  75. "default": 50
  76. },
  77. "mediaSizeSlug": {
  78. "type": "string"
  79. },
  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"
  92. },
  93. "allowedBlocks": {
  94. "type": "array"
  95. }
  96. },
  97. "supports": {
  98. "anchor": true,
  99. "align": [ "wide", "full" ],
  100. "html": false,
  101. "color": {
  102. "gradients": true,
  103. "heading": true,
  104. "link": true,
  105. "__experimentalDefaultControls": {
  106. "background": true,
  107. "text": true
  108. }
  109. },
  110. "spacing": {
  111. "margin": true,
  112. "padding": true
  113. },
  114. "typography": {
  115. "fontSize": true,
  116. "lineHeight": true,
  117. "__experimentalFontFamily": true,
  118. "__experimentalFontWeight": true,
  119. "__experimentalFontStyle": true,
  120. "__experimentalTextTransform": true,
  121. "__experimentalTextDecoration": true,
  122. "__experimentalLetterSpacing": true,
  123. "__experimentalDefaultControls": {
  124. "fontSize": true
  125. }
  126. }
  127. },
  128. "editorStyle": "wp-block-media-text-editor",
  129. "style": "wp-block-media-text"
  130. }