example.json 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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": "image",
  64. "attributes": {
  65. "image_src": "https://images.unsplash.com/photo-1471897488648-5eae4ac6686b?ixlib=rb-1.2.1&dl=sarah-dorweiler-QeVmJxZOv3k-unsplash.jpg&w=640&q=80&fm=jpg&crop=entropy&cs=tinysrgb",
  66. "align": "center"
  67. }
  68. },
  69. {
  70. "type": "text",
  71. "delta": [
  72. {
  73. "insert": "Here are the basics:"
  74. }
  75. ],
  76. "attributes": {
  77. "subtype": "heading",
  78. "heading": "h3"
  79. }
  80. },
  81. {
  82. "type": "text",
  83. "delta": [
  84. { "insert": "Click " },
  85. { "insert": "anywhere", "attributes": { "underline": true } },
  86. { "insert": " and just typing." }
  87. ]
  88. },
  89. {
  90. "type": "text",
  91. "delta": [
  92. {
  93. "insert": "Hit"
  94. },
  95. {
  96. "insert": " / ",
  97. "attributes": { "backgroundColor": "0xFFFFFF00" }
  98. },
  99. {
  100. "insert": "to see all the types of content you can add - headers, bulleted lists, checkboxes, etc."
  101. }
  102. ]
  103. },
  104. {
  105. "type": "text",
  106. "delta": [
  107. {
  108. "insert": "Highlight",
  109. "attributes": { "backgroundColor": "0xFF00BCFB" }
  110. },
  111. {
  112. "insert": " any text, and use the menu that pops up to "
  113. },
  114. { "insert": "style", "attributes": { "bold": true } },
  115. { "insert": " your ", "attributes": { "italic": true } },
  116. { "insert": "writing", "attributes": { "strikethrough": true } },
  117. { "insert": "." }
  118. ]
  119. },
  120. {
  121. "type": "text",
  122. "delta": [
  123. {
  124. "insert": "Here are the plugins:"
  125. }
  126. ],
  127. "attributes": {
  128. "subtype": "heading",
  129. "heading": "h3"
  130. }
  131. },
  132. {
  133. "type": "text",
  134. "delta": [
  135. {
  136. "insert": "Hello world"
  137. }
  138. ],
  139. "attributes": {
  140. "subtype": "checkbox",
  141. "checkbox": false
  142. }
  143. },
  144. {
  145. "type": "text",
  146. "delta": [
  147. {
  148. "insert": "Hello world"
  149. }
  150. ],
  151. "attributes": {
  152. "subtype": "checkbox",
  153. "checkbox": false
  154. }
  155. },
  156. {
  157. "type": "text",
  158. "delta": [
  159. {
  160. "insert": "Hello world"
  161. }
  162. ],
  163. "attributes": {
  164. "subtype": "checkbox",
  165. "checkbox": false
  166. }
  167. },
  168. {
  169. "type": "text",
  170. "delta": [
  171. {
  172. "insert": "Hello world"
  173. }
  174. ],
  175. "attributes": {
  176. "subtype": "bulleted-list"
  177. }
  178. },
  179. {
  180. "type": "text",
  181. "delta": [
  182. {
  183. "insert": "Hello world"
  184. }
  185. ],
  186. "attributes": {
  187. "subtype": "bulleted-list"
  188. }
  189. },
  190. {
  191. "type": "text",
  192. "delta": [
  193. {
  194. "insert": "Hello "
  195. },
  196. {
  197. "insert": "world",
  198. "attributes": { "bold": true }
  199. }
  200. ],
  201. "attributes": {
  202. "subtype": "bulleted-list"
  203. }
  204. },
  205. {
  206. "type": "text",
  207. "delta": [
  208. {
  209. "insert": "Hello world"
  210. }
  211. ],
  212. "attributes": {
  213. "subtype": "quote"
  214. }
  215. },
  216. {
  217. "type": "text",
  218. "delta": [
  219. {
  220. "insert": "Hello world"
  221. }
  222. ],
  223. "attributes": {
  224. "subtype": "quote"
  225. }
  226. },
  227. {
  228. "type": "text",
  229. "delta": [
  230. {
  231. "insert": "Hello world"
  232. }
  233. ],
  234. "attributes": {
  235. "subtype": "quote"
  236. }
  237. },
  238. {
  239. "type": "text",
  240. "delta": [
  241. {
  242. "insert": "Hello world"
  243. }
  244. ],
  245. "attributes": {
  246. "subtype": "number-list",
  247. "number": 1
  248. }
  249. },
  250. {
  251. "type": "text",
  252. "delta": [
  253. {
  254. "insert": "Hello world"
  255. }
  256. ],
  257. "attributes": {
  258. "subtype": "number-list",
  259. "number": 2
  260. }
  261. },
  262. {
  263. "type": "text",
  264. "delta": [
  265. {
  266. "insert": "Hello world"
  267. }
  268. ],
  269. "attributes": {
  270. "subtype": "number-list",
  271. "number": 3
  272. }
  273. }
  274. ]
  275. }
  276. }