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.

61 lines
1.2 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  4. "name": "core/audio",
  5. "title": "Audio",
  6. "category": "media",
  7. "description": "Embed a simple audio player.",
  8. "keywords": [ "music", "sound", "podcast", "recording" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "src": {
  12. "type": "string",
  13. "source": "attribute",
  14. "selector": "audio",
  15. "attribute": "src",
  16. "__experimentalRole": "content"
  17. },
  18. "caption": {
  19. "type": "string",
  20. "source": "html",
  21. "selector": "figcaption",
  22. "__experimentalRole": "content"
  23. },
  24. "id": {
  25. "type": "number",
  26. "__experimentalRole": "content"
  27. },
  28. "autoplay": {
  29. "type": "boolean",
  30. "source": "attribute",
  31. "selector": "audio",
  32. "attribute": "autoplay"
  33. },
  34. "loop": {
  35. "type": "boolean",
  36. "source": "attribute",
  37. "selector": "audio",
  38. "attribute": "loop"
  39. },
  40. "preload": {
  41. "type": "string",
  42. "source": "attribute",
  43. "selector": "audio",
  44. "attribute": "preload"
  45. }
  46. },
  47. "supports": {
  48. "anchor": true,
  49. "align": true,
  50. "spacing": {
  51. "margin": true,
  52. "padding": true,
  53. "__experimentalDefaultControls": {
  54. "margin": false,
  55. "padding": false
  56. }
  57. }
  58. },
  59. "editorStyle": "wp-block-audio-editor",
  60. "style": "wp-block-audio"
  61. }