example.json 3.0 KB

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