example.json 5.9 KB

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