example.json 2.9 KB

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