Keine Beschreibung

block.json 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  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": "wide"
  14. },
  15. "mediaAlt": {
  16. "type": "string",
  17. "source": "attribute",
  18. "selector": "figure img",
  19. "attribute": "alt",
  20. "default": ""
  21. },
  22. "mediaPosition": {
  23. "type": "string",
  24. "default": "left"
  25. },
  26. "mediaId": {
  27. "type": "number"
  28. },
  29. "mediaUrl": {
  30. "type": "string",
  31. "source": "attribute",
  32. "selector": "figure video,figure img",
  33. "attribute": "src"
  34. },
  35. "mediaLink": {
  36. "type": "string"
  37. },
  38. "linkDestination": {
  39. "type": "string"
  40. },
  41. "linkTarget": {
  42. "type": "string",
  43. "source": "attribute",
  44. "selector": "figure a",
  45. "attribute": "target"
  46. },
  47. "href": {
  48. "type": "string",
  49. "source": "attribute",
  50. "selector": "figure a",
  51. "attribute": "href"
  52. },
  53. "rel": {
  54. "type": "string",
  55. "source": "attribute",
  56. "selector": "figure a",
  57. "attribute": "rel"
  58. },
  59. "linkClass": {
  60. "type": "string",
  61. "source": "attribute",
  62. "selector": "figure a",
  63. "attribute": "class"
  64. },
  65. "mediaType": {
  66. "type": "string"
  67. },
  68. "mediaWidth": {
  69. "type": "number",
  70. "default": 50
  71. },
  72. "mediaSizeSlug": {
  73. "type": "string"
  74. },
  75. "isStackedOnMobile": {
  76. "type": "boolean",
  77. "default": true
  78. },
  79. "verticalAlignment": {
  80. "type": "string"
  81. },
  82. "imageFill": {
  83. "type": "boolean"
  84. },
  85. "focalPoint": {
  86. "type": "object"
  87. }
  88. },
  89. "supports": {
  90. "anchor": true,
  91. "align": [ "wide", "full" ],
  92. "html": false,
  93. "color": {
  94. "gradients": true,
  95. "link": true,
  96. "__experimentalDefaultControls": {
  97. "background": true,
  98. "text": true
  99. }
  100. }
  101. },
  102. "editorStyle": "wp-block-media-text-editor",
  103. "style": "wp-block-media-text"
  104. }