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.

73 lines
1.6 KiB

1 year ago
  1. {
  2. "$schema": "https://schemas.wp.org/trunk/block.json",
  3. "apiVersion": 3,
  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. "usesContext": [ "postId" ],
  11. "attributes": {
  12. "align": {
  13. "type": "string"
  14. },
  15. "content": {
  16. "type": "string",
  17. "source": "html",
  18. "selector": "p",
  19. "default": "",
  20. "__experimentalRole": "content"
  21. },
  22. "dropCap": {
  23. "type": "boolean",
  24. "default": false
  25. },
  26. "placeholder": {
  27. "type": "string"
  28. },
  29. "direction": {
  30. "type": "string",
  31. "enum": [ "ltr", "rtl" ]
  32. }
  33. },
  34. "supports": {
  35. "anchor": true,
  36. "className": false,
  37. "color": {
  38. "gradients": true,
  39. "link": true,
  40. "__experimentalDefaultControls": {
  41. "background": true,
  42. "text": true
  43. }
  44. },
  45. "__experimentalConnections": true,
  46. "spacing": {
  47. "margin": true,
  48. "padding": true,
  49. "__experimentalDefaultControls": {
  50. "margin": false,
  51. "padding": false
  52. }
  53. },
  54. "typography": {
  55. "fontSize": true,
  56. "lineHeight": true,
  57. "__experimentalFontFamily": true,
  58. "__experimentalTextDecoration": true,
  59. "__experimentalFontStyle": true,
  60. "__experimentalFontWeight": true,
  61. "__experimentalLetterSpacing": true,
  62. "__experimentalTextTransform": true,
  63. "__experimentalWritingMode": true,
  64. "__experimentalDefaultControls": {
  65. "fontSize": true
  66. }
  67. },
  68. "__experimentalSelector": "p",
  69. "__unstablePasteTextInline": true
  70. },
  71. "editorStyle": "wp-block-paragraph-editor",
  72. "style": "wp-block-paragraph"
  73. }