example.json 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  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. "subtype": "heading",
  21. "heading": "h1"
  22. }
  23. },
  24. {
  25. "type": "text",
  26. "delta": [
  27. {
  28. "insert": "👋 Welcome to Appflowy"
  29. }
  30. ],
  31. "attributes": {
  32. "subtype": "heading",
  33. "heading": "h2"
  34. }
  35. },
  36. {
  37. "type": "text",
  38. "delta": [
  39. {
  40. "insert": "Here are the plugin demos:"
  41. }
  42. ],
  43. "attributes": {
  44. "subtype": "heading",
  45. "heading": "h3"
  46. }
  47. },
  48. {
  49. "type": "text",
  50. "delta": [
  51. {
  52. "insert": "Checkbox example ......"
  53. }
  54. ],
  55. "attributes": {
  56. "subtype": "checkbox",
  57. "checkbox": false
  58. },
  59. "children": [
  60. {
  61. "type": "text",
  62. "delta": [
  63. {
  64. "insert": "AAA Checkbox example ......\nAAA Checkbox example ......"
  65. }
  66. ],
  67. "attributes": {
  68. "subtype": "checkbox",
  69. "checkbox": false
  70. }
  71. },
  72. {
  73. "type": "text",
  74. "delta": [
  75. {
  76. "insert": "BBB Checkbox example ......"
  77. }
  78. ],
  79. "attributes": {
  80. "subtype": "checkbox",
  81. "checkbox": true
  82. }
  83. }
  84. ]
  85. },
  86. {
  87. "type": "text",
  88. "delta": [
  89. {
  90. "insert": "Raw text example ......"
  91. }
  92. ]
  93. },
  94. {
  95. "type": "text",
  96. "delta": [
  97. {
  98. "insert": "Here are the basics:"
  99. }
  100. ],
  101. "attributes": {
  102. "subtype": "heading",
  103. "heading": "h3"
  104. }
  105. },
  106. {
  107. "type": "text",
  108. "delta": [
  109. { "insert": "Click " },
  110. { "insert": "anywhere", "attributes": { "underline": true } },
  111. { "insert": " and just typing." }
  112. ],
  113. "attributes": {
  114. "list": "todo",
  115. "todo": true
  116. }
  117. },
  118. {
  119. "type": "text",
  120. "delta": [
  121. {
  122. "insert": "Hit"
  123. },
  124. {
  125. "insert": " / ",
  126. "attributes": { "highlightColor": "0xFFFFFF00" }
  127. },
  128. {
  129. "insert": "to see all the types of content you can add - entity, headers, videos, sub pages, etc."
  130. }
  131. ],
  132. "attributes": {
  133. "list": "todo",
  134. "todo": true
  135. }
  136. },
  137. {
  138. "type": "text",
  139. "delta": [
  140. {
  141. "insert": "Highlight any text, and use the menu that pops up to "
  142. },
  143. { "insert": "style", "attributes": { "bold": true } },
  144. { "insert": " your ", "attributes": { "italic": true } },
  145. { "insert": "writing", "attributes": { "strikethrough": true } },
  146. { "insert": "." }
  147. ],
  148. "attributes": {
  149. "list": "todo",
  150. "todo": true
  151. }
  152. },
  153. {
  154. "type": "text",
  155. "delta": [
  156. {
  157. "insert": "Here are the examples:"
  158. }
  159. ],
  160. "attributes": {
  161. "subtype": "heading",
  162. "heading": "h3"
  163. }
  164. },
  165. {
  166. "type": "text",
  167. "delta": [
  168. {
  169. "insert": "Hello world"
  170. }
  171. ],
  172. "attributes": {
  173. "list": "bullet"
  174. }
  175. },
  176. {
  177. "type": "text",
  178. "delta": [
  179. {
  180. "insert": "Hello world"
  181. }
  182. ],
  183. "attributes": {
  184. "list": "bullet"
  185. }
  186. },
  187. {
  188. "type": "text",
  189. "delta": [
  190. {
  191. "insert": "Hello world"
  192. }
  193. ],
  194. "attributes": {
  195. "list": "bullet"
  196. }
  197. },
  198. {
  199. "type": "text",
  200. "delta": [
  201. {
  202. "insert": "Hello world"
  203. }
  204. ],
  205. "attributes": {
  206. "quote": true
  207. }
  208. },
  209. {
  210. "type": "text",
  211. "delta": [
  212. {
  213. "insert": "Hello world"
  214. }
  215. ],
  216. "attributes": {
  217. "quote": true
  218. }
  219. },
  220. {
  221. "type": "text",
  222. "delta": [
  223. {
  224. "insert": "Hello world"
  225. }
  226. ],
  227. "attributes": {
  228. "number": 1
  229. }
  230. },
  231. {
  232. "type": "text",
  233. "delta": [
  234. {
  235. "insert": "Hello world"
  236. }
  237. ],
  238. "attributes": {
  239. "number": 2
  240. }
  241. },
  242. {
  243. "type": "text",
  244. "delta": [
  245. {
  246. "insert": "Hello world"
  247. }
  248. ],
  249. "attributes": {
  250. "number": 3
  251. }
  252. }
  253. ]
  254. }
  255. }