example.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "document": {
  3. "type": "editor",
  4. "children": [
  5. {
  6. "type": "text",
  7. "attributes": {
  8. "subtype": "heading",
  9. "heading": "h2"
  10. },
  11. "delta": [
  12. { "insert": "👋 " },
  13. { "insert": "Welcome to", "attributes": { "bold": true } },
  14. { "insert": " " },
  15. {
  16. "insert": "AppFlowy Editor",
  17. "attributes": {
  18. "href": "appflowy.io",
  19. "italic": true,
  20. "bold": true
  21. }
  22. }
  23. ]
  24. },
  25. { "type": "text", "delta": [] },
  26. {
  27. "type": "text",
  28. "delta": [
  29. { "insert": "AppFlowy Editor is a" },
  30. { "insert": " " },
  31. { "insert": "highly customizable", "attributes": { "bold": true } },
  32. { "insert": " " },
  33. { "insert": "rich-text editor", "attributes": { "italic": true } },
  34. { "insert": " for " },
  35. { "insert": "Flutter", "attributes": { "underline": true } }
  36. ]
  37. },
  38. {
  39. "type": "text",
  40. "attributes": { "checkbox": true, "subtype": "checkbox" },
  41. "delta": [{ "insert": "Customizable" }]
  42. },
  43. {
  44. "type": "text",
  45. "attributes": { "checkbox": true, "subtype": "checkbox" },
  46. "delta": [{ "insert": "Test-covered" }]
  47. },
  48. {
  49. "type": "text",
  50. "attributes": { "checkbox": false, "subtype": "checkbox" },
  51. "delta": [{ "insert": "more to come!" }]
  52. },
  53. { "type": "text", "delta": [] },
  54. {
  55. "type": "text",
  56. "attributes": { "subtype": "quote" },
  57. "delta": [{ "insert": "Here is an example you can give a try" }]
  58. },
  59. { "type": "text", "delta": [] },
  60. {
  61. "type": "text",
  62. "delta": [
  63. { "insert": "You can also use " },
  64. {
  65. "insert": "AppFlowy Editor",
  66. "attributes": {
  67. "italic": true,
  68. "bold": true,
  69. "backgroundColor": "0x6000BCF0"
  70. }
  71. },
  72. { "insert": " as a component to build your own app." }
  73. ]
  74. },
  75. { "type": "text", "delta": [] },
  76. {
  77. "type": "text",
  78. "attributes": { "subtype": "bulleted-list" },
  79. "delta": [{ "insert": "Use / to insert blocks" }]
  80. },
  81. {
  82. "type": "text",
  83. "attributes": { "subtype": "bulleted-list" },
  84. "delta": [
  85. {
  86. "insert": "Select text to trigger to the toolbar to format your notes."
  87. }
  88. ]
  89. },
  90. { "type": "text", "delta": [] },
  91. {
  92. "type": "text",
  93. "delta": [
  94. {
  95. "insert": "If you have questions or feedback, please submit an issue on Github or join the community along with 1000+ builders!"
  96. }
  97. ]
  98. }
  99. ]
  100. }
  101. }