example.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. {
  2. "document": {
  3. "type": "editor",
  4. "attributes": {},
  5. "children": [
  6. {
  7. "type": "image",
  8. "attributes": {
  9. "image_src": "https://images.pexels.com/photos/2253275/pexels-photo-2253275.jpeg?cs=srgb&dl=pexels-helena-lopes-2253275.jpg&fm=jpg"
  10. }
  11. },
  12. {
  13. "type": "text",
  14. "delta": [
  15. {
  16. "insert": "🌶 Read Me"
  17. }
  18. ],
  19. "attributes": {
  20. "heading": "h1"
  21. }
  22. },
  23. {
  24. "type": "text",
  25. "delta": [
  26. {
  27. "insert": "👋 Welcome to Appflowy"
  28. }
  29. ],
  30. "attributes": {
  31. "heading": "h2"
  32. }
  33. },
  34. {
  35. "type": "text",
  36. "delta": [
  37. {
  38. "insert": "Here are the basics:"
  39. }
  40. ],
  41. "attributes": {
  42. "heading": "h3"
  43. }
  44. },
  45. {
  46. "type": "text",
  47. "delta": [
  48. { "insert": "Click " },
  49. { "insert": "anywhere", "attributes": { "underline": true } },
  50. { "insert": " and just typing." }
  51. ],
  52. "attributes": {
  53. "list": "todo",
  54. "todo": true
  55. }
  56. },
  57. {
  58. "type": "text",
  59. "delta": [
  60. {
  61. "insert": "Hit"
  62. },
  63. {
  64. "insert": " / ",
  65. "attributes": { "highlightColor": "0xFFFFFF00" }
  66. },
  67. {
  68. "insert": "to see all the types of content you can add - entity, headers, videos, sub pages, etc."
  69. }
  70. ],
  71. "attributes": {
  72. "list": "todo",
  73. "todo": true
  74. }
  75. },
  76. {
  77. "type": "text",
  78. "delta": [
  79. {
  80. "insert": "Highlight any text, and use the menu that pops up to "
  81. },
  82. { "insert": "style", "attributes": { "bold": true } },
  83. { "insert": " your ", "attributes": { "italic": true } },
  84. { "insert": "writing", "attributes": { "strikethrough": true } },
  85. { "insert": "." }
  86. ],
  87. "attributes": {
  88. "list": "todo",
  89. "todo": true
  90. }
  91. },
  92. {
  93. "type": "text",
  94. "delta": [
  95. {
  96. "insert": "Here are the examples:"
  97. }
  98. ],
  99. "attributes": {
  100. "heading": "h3"
  101. }
  102. },
  103. {
  104. "type": "text",
  105. "delta": [
  106. {
  107. "insert": "Hello world"
  108. }
  109. ],
  110. "attributes": {
  111. "list": "bullet"
  112. }
  113. },
  114. {
  115. "type": "text",
  116. "delta": [
  117. {
  118. "insert": "Hello world"
  119. }
  120. ],
  121. "attributes": {
  122. "list": "bullet"
  123. }
  124. },
  125. {
  126. "type": "text",
  127. "delta": [
  128. {
  129. "insert": "Hello world"
  130. }
  131. ],
  132. "attributes": {
  133. "list": "bullet"
  134. }
  135. },
  136. {
  137. "type": "text",
  138. "delta": [
  139. {
  140. "insert": "Hello world"
  141. }
  142. ],
  143. "attributes": {
  144. "quote": true
  145. }
  146. },
  147. {
  148. "type": "text",
  149. "delta": [
  150. {
  151. "insert": "Hello world"
  152. }
  153. ],
  154. "attributes": {
  155. "quote": true
  156. }
  157. },
  158. {
  159. "type": "text",
  160. "delta": [
  161. {
  162. "insert": "Hello world"
  163. }
  164. ],
  165. "attributes": {
  166. "number": 1
  167. }
  168. },
  169. {
  170. "type": "text",
  171. "delta": [
  172. {
  173. "insert": "Hello world"
  174. }
  175. ],
  176. "attributes": {
  177. "number": 2
  178. }
  179. },
  180. {
  181. "type": "text",
  182. "delta": [
  183. {
  184. "insert": "Hello world"
  185. }
  186. ],
  187. "attributes": {
  188. "number": 3
  189. }
  190. }
  191. ]
  192. }
  193. }