block.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 2,
  4. "name": "core/paragraph",
  5. "title": "Paragraph",
  6. "category": "text",
  7. "description": "Start with the basic building block of all narrative.",
  8. "keywords": [ "text" ],
  9. "textdomain": "default",
  10. "attributes": {
  11. "align": {
  12. "type": "string"
  13. },
  14. "content": {
  15. "type": "string",
  16. "source": "html",
  17. "selector": "p",
  18. "default": "",
  19. "__experimentalRole": "content"
  20. },
  21. "dropCap": {
  22. "type": "boolean",
  23. "default": false
  24. },
  25. "placeholder": {
  26. "type": "string"
  27. },
  28. "direction": {
  29. "type": "string",
  30. "enum": [ "ltr", "rtl" ]
  31. }
  32. },
  33. "supports": {
  34. "anchor": true,
  35. "className": false,
  36. "color": {
  37. "link": true,
  38. "__experimentalDefaultControls": {
  39. "background": true,
  40. "text": true
  41. }
  42. },
  43. "typography": {
  44. "fontSize": true,
  45. "lineHeight": true,
  46. "__experimentalFontStyle": true,
  47. "__experimentalFontWeight": true,
  48. "__experimentalLetterSpacing": true,
  49. "__experimentalTextTransform": true,
  50. "__experimentalDefaultControls": {
  51. "fontSize": true
  52. }
  53. },
  54. "__experimentalSelector": "p",
  55. "__unstablePasteTextInline": true
  56. },
  57. "editorStyle": "wp-block-paragraph-editor",
  58. "style": "wp-block-paragraph"
  59. }