example.json 2.7 KB

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