暫無描述

block.json 998B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  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. },
  17. "caption": {
  18. "type": "string",
  19. "source": "html",
  20. "selector": "figcaption"
  21. },
  22. "id": {
  23. "type": "number"
  24. },
  25. "autoplay": {
  26. "type": "boolean",
  27. "source": "attribute",
  28. "selector": "audio",
  29. "attribute": "autoplay"
  30. },
  31. "loop": {
  32. "type": "boolean",
  33. "source": "attribute",
  34. "selector": "audio",
  35. "attribute": "loop"
  36. },
  37. "preload": {
  38. "type": "string",
  39. "source": "attribute",
  40. "selector": "audio",
  41. "attribute": "preload"
  42. }
  43. },
  44. "supports": {
  45. "anchor": true,
  46. "align": true
  47. },
  48. "editorStyle": "wp-block-audio-editor",
  49. "style": "wp-block-audio"
  50. }