example.json 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. {
  2. "document": {
  3. "type": "editor",
  4. "attributes": {},
  5. "children": [
  6. {
  7. "type": "image",
  8. "attributes": {
  9. "image_src": "https://images.squarespace-cdn.com/content/v1/617f6f16b877c06711e87373/c3f23723-37f4-44d7-9c5d-6e2a53064ae7/Asset+10.png"
  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 FlowyEditor"
  29. }
  30. ],
  31. "attributes": {
  32. "subtype": "heading",
  33. "heading": "h2"
  34. }
  35. },
  36. {
  37. "type": "text",
  38. "delta": [
  39. {
  40. "insert": "To be honest, we are still in the alpha stage. There are still many functions that need to be completed. And we are developing more features. Please give us a star if the "
  41. },
  42. {
  43. "insert": "FlowyEditor",
  44. "attributes": {
  45. "href": "https://github.com/AppFlowy-IO/AppFlowy"
  46. }
  47. },
  48. {
  49. "insert": " helps you. 😊😊😊"
  50. }
  51. ]
  52. },
  53. {
  54. "type": "text",
  55. "delta": [
  56. {
  57. "insert": "Since the FlowyEditor are a community-driven open source editor, we very welcome and appreciate every pull request submissions from everyone.😄😄😄"
  58. }
  59. ]
  60. },
  61. {
  62. "type": "text",
  63. "delta": [
  64. {
  65. "insert": "Here are the basics:"
  66. }
  67. ],
  68. "attributes": {
  69. "subtype": "heading",
  70. "heading": "h3"
  71. }
  72. },
  73. {
  74. "type": "text",
  75. "delta": [
  76. { "insert": "Click " },
  77. { "insert": "anywhere", "attributes": { "underline": true } },
  78. { "insert": " and just typing." }
  79. ]
  80. },
  81. {
  82. "type": "text",
  83. "delta": [
  84. {
  85. "insert": "Hit"
  86. },
  87. {
  88. "insert": " / ",
  89. "attributes": { "backgroundColor": "0xFFFFFF00" }
  90. },
  91. {
  92. "insert": "to see all the types of content you can add - headers, bulleted lists, checkboxes, etc."
  93. }
  94. ]
  95. },
  96. {
  97. "type": "text",
  98. "delta": [
  99. {
  100. "insert": "Highlight",
  101. "attributes": { "backgroundColor": "0xFF00BCFB" }
  102. },
  103. {
  104. "insert": " any text, and use the menu that pops up to "
  105. },
  106. { "insert": "style", "attributes": { "bold": true } },
  107. { "insert": " your ", "attributes": { "italic": true } },
  108. { "insert": "writing", "attributes": { "strikethrough": true } },
  109. { "insert": "." }
  110. ]
  111. },
  112. {
  113. "type": "text",
  114. "delta": [
  115. {
  116. "insert": "Here are the plugins:"
  117. }
  118. ],
  119. "attributes": {
  120. "subtype": "heading",
  121. "heading": "h3"
  122. }
  123. },
  124. {
  125. "type": "text",
  126. "delta": [
  127. {
  128. "insert": "Hello world"
  129. }
  130. ],
  131. "attributes": {
  132. "subtype": "checkbox",
  133. "checkbox": false
  134. }
  135. },
  136. {
  137. "type": "text",
  138. "delta": [
  139. {
  140. "insert": "Hello world"
  141. }
  142. ],
  143. "attributes": {
  144. "subtype": "checkbox",
  145. "checkbox": false
  146. }
  147. },
  148. {
  149. "type": "text",
  150. "delta": [
  151. {
  152. "insert": "Hello world"
  153. }
  154. ],
  155. "attributes": {
  156. "subtype": "checkbox",
  157. "checkbox": false
  158. }
  159. },
  160. {
  161. "type": "text",
  162. "delta": [
  163. {
  164. "insert": "Hello world"
  165. }
  166. ],
  167. "attributes": {
  168. "subtype": "bulleted-list"
  169. }
  170. },
  171. {
  172. "type": "text",
  173. "delta": [
  174. {
  175. "insert": "Hello world"
  176. }
  177. ],
  178. "attributes": {
  179. "subtype": "bulleted-list"
  180. }
  181. },
  182. {
  183. "type": "text",
  184. "delta": [
  185. {
  186. "insert": "Hello "
  187. },
  188. {
  189. "insert": "world",
  190. "attributes": { "bold": true }
  191. }
  192. ],
  193. "attributes": {
  194. "subtype": "bulleted-list"
  195. }
  196. },
  197. {
  198. "type": "text",
  199. "delta": [
  200. {
  201. "insert": "Hello world"
  202. }
  203. ],
  204. "attributes": {
  205. "subtype": "quote"
  206. }
  207. },
  208. {
  209. "type": "text",
  210. "delta": [
  211. {
  212. "insert": "Hello world"
  213. }
  214. ],
  215. "attributes": {
  216. "subtype": "quote"
  217. }
  218. },
  219. {
  220. "type": "text",
  221. "delta": [
  222. {
  223. "insert": "Hello world"
  224. }
  225. ],
  226. "attributes": {
  227. "subtype": "quote"
  228. }
  229. },
  230. {
  231. "type": "text",
  232. "delta": [
  233. {
  234. "insert": "Hello world"
  235. }
  236. ],
  237. "attributes": {
  238. "subtype": "number-list",
  239. "number": 1
  240. }
  241. },
  242. {
  243. "type": "text",
  244. "delta": [
  245. {
  246. "insert": "Hello world"
  247. }
  248. ],
  249. "attributes": {
  250. "subtype": "number-list",
  251. "number": 2
  252. }
  253. },
  254. {
  255. "type": "text",
  256. "delta": [
  257. {
  258. "insert": "Hello world"
  259. }
  260. ],
  261. "attributes": {
  262. "subtype": "number-list",
  263. "number": 3
  264. }
  265. }
  266. ]
  267. }
  268. }