example.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "document": {
  3. "type": "editor",
  4. "children": [
  5. {
  6. "type": "image",
  7. "attributes": {
  8. "image_src": "https://s1.ax1x.com/2022/08/26/v2sSbR.jpg",
  9. "align": "center"
  10. }
  11. },
  12. {
  13. "type": "text",
  14. "attributes": { "subtype": "heading", "heading": "h1" },
  15. "delta": [
  16. { "insert": "👋 " },
  17. { "insert": "Welcome to ", "attributes": { "bold": true } },
  18. {
  19. "insert": "AppFlowy Editor",
  20. "attributes": {
  21. "href": "appflowy.io",
  22. "italic": true,
  23. "bold": true
  24. }
  25. }
  26. ]
  27. },
  28. {
  29. "type": "text",
  30. "attributes": { "subtype": "code_block", "theme": "vs", "language": "dart" },
  31. "delta": [{ "insert": "final x = 0;\nprint($x);" }]
  32. },
  33. { "type": "text", "delta": [] },
  34. {
  35. "type": "text",
  36. "delta": [
  37. { "insert": "AppFlowy Editor is a " },
  38. { "insert": "highly customizable", "attributes": { "bold": true } },
  39. { "insert": " " },
  40. { "insert": "rich-text editor", "attributes": { "italic": true } },
  41. { "insert": " for " },
  42. { "insert": "Flutter", "attributes": { "underline": true } }
  43. ]
  44. },
  45. {
  46. "type": "text",
  47. "attributes": { "checkbox": true, "subtype": "checkbox" },
  48. "delta": [{ "insert": "Customizable" }]
  49. },
  50. {
  51. "type": "text",
  52. "attributes": { "checkbox": true, "subtype": "checkbox" },
  53. "delta": [{ "insert": "Test-covered" }]
  54. },
  55. {
  56. "type": "text",
  57. "attributes": { "checkbox": false, "subtype": "checkbox" },
  58. "delta": [{ "insert": "more to come!" }]
  59. },
  60. { "type": "text", "delta": [] },
  61. {
  62. "type": "text",
  63. "attributes": { "subtype": "quote" },
  64. "delta": [{ "insert": "Here is an example you can give a try" }]
  65. },
  66. { "type": "text", "delta": [] },
  67. {
  68. "type": "text",
  69. "delta": [
  70. { "insert": "You can also use " },
  71. {
  72. "insert": "AppFlowy Editor",
  73. "attributes": {
  74. "italic": true,
  75. "bold": true,
  76. "backgroundColor": "0x6000BCF0"
  77. }
  78. },
  79. { "insert": " as a component to build your own app." }
  80. ]
  81. },
  82. { "type": "text", "delta": [] },
  83. {
  84. "type": "text",
  85. "attributes": { "subtype": "bulleted-list" },
  86. "delta": [{ "insert": "Use / to insert blocks" }]
  87. },
  88. {
  89. "type": "text",
  90. "attributes": { "subtype": "bulleted-list" },
  91. "delta": [
  92. {
  93. "insert": "Select text to trigger to the toolbar to format your notes."
  94. }
  95. ]
  96. },
  97. { "type": "text", "delta": [] },
  98. {
  99. "type": "text",
  100. "delta": [
  101. {
  102. "insert": "If you have questions or feedback, please submit an issue on Github or join the community along with 1000+ builders!"
  103. }
  104. ]
  105. }
  106. ]
  107. }
  108. }