forked from michelson/Dante
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathd3_content_html.tsx
1523 lines (1499 loc) · 70.7 KB
/
d3_content_html.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
export function content2() {
return `
<h2>
Hi there,
</h2>
<img src="https://avatars.githubusercontent.com/u/2500670?s=120&v=4" width="100%" height="200px"></img>
<node-view>
<div contenteditable="false">
non-editable text
</div>
<div>
editable text
</div>
</node-view>
<editable-block>
<div>
editable text
</div>
</editable-block>
<image-block count="0"
url="https://avatars.githubusercontent.com/u/2500670?s=120&v=4">
<p>This is editable.</p>
</image-block>
<react-component count="0"
url="https://avatars.githubusercontent.com/u/2500670?s=120&v=4">
<p>This is editable.</p>
</react-component>
<p>
this is a <em>basic</em> example of <strong>tiptap</strong>. Sure, there are all kind of basic text styles you’d probably expect from a text editor. But wait until you see the lists:
</p>
<ul>
<li>
That’s a bullet list with one …
</li>
<li>
… or two list items.
</li>
</ul>
<p>
Isn’t that great? And all of that is editable. But wait, there’s more. Let’s try a code block:
</p>
<pre><code class="language-css">body {
display: none;
}</code></pre>
<p>
I know, I know, this is impressive. It’s only the tip of the iceberg though. Give it a try and click a little bit around. Don’t forget to check the other examples too.
</p>
<blockquote>
Wow, that’s amazing. Good work, boy! 👏
<br />
— Mom
</blockquote>
`;
}
export default function content() {
return `
<h2 class="graf graf--h">The Node version printed in the Node.js <span style="color: #e721eb">Version</span> panel is used in Cypress to:</h2><p class="graf graf--p"></p><image-block url="https://media1.giphy.com/media/3ohs7HdhQA4ffttvrO/giphy.gif" width="480" height="480" loading="false" loading_progress="0" caption="caption!" direction="left" aspect_ratio="[object Object]"></image-block><p class="graf graf--p">hola como estas I am very good and you this is the story of that Mary Lou did big time Big Bird big big boobs and then the lady Lilith ellise tired and leaves your do very low very low I want to live tonight by the new really countdown night I'm running kind of middle a the chicken <strong>nevermind</strong> DiCaprio Pines everyone tonight both of them in the raking in the money moves Bueller I'm the sole in the crane than by there and its crying in the pride is too I am very cute and you this is the story of Mary to do did Big Time big bird big boobs and the little little league and then the little lady lived at least I added</p><ul><li><p class="graf graf--p">Build files in the <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/references/configuration#Folders-Files">integrationFolder</a>.</p></li><li><p class="graf graf--p">Build files in the <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/references/configuration#Folders-Files">supportFile</a>.</p></li><li><p class="graf graf--p">Execute code in the <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/references/configuration#Folders-Files">pluginsFile</a>.</p></li></ul><p class="graf graf--p">Cypress comes automatically bundled with a set Node version by default. You can see the bundled version by running the <code>cypress version</code> command, for example:</p><pre><code>npx cypress version
Cypress package version: 6.2.1
Cypress binary version: 6.2.1
Electron version: 11.1.1
Bundled Node version: 12.18.3
</code></pre><p class="graf graf--p">You may want to use a different Node version if the code executing from the plugins file requires features present in a different Node version from the Node version bundled with Cypress. You can use the Node version detected on your system by setting the <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/references/configuration#Node-version">nodeVersion</a> configuration to <code>system</code>. For example, you need to use the system Node if you want to load <code>node-sass</code> or <code>sqlite3</code> modules from your plugins file.</p><image-block src="https://docs.cypress.io/_nuxt/img/test-runner-settings-nodejs-version.4028364.jpg" width="1000" height="702" loading="false" loading_progress="0" caption="caption!" direction="center" aspect_ratio="[object Object]"></image-block><h3 class="graf graf--h"><strong>Experiments</strong></h3><p class="graf graf--p">Configuration might include experimental options currently being tested. See <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/references/experiments">Experiments</a> page.</p><h2 class="graf graf--h"><strong>Overriding Options</strong></h2><p class="graf graf--p">Cypress gives you the option to dynamically alter configuration values. This is helpful when running Cypress in multiple environments and on multiple developer machines.</p><p class="graf graf--p">This gives you the option to do things like override the <code>baseUrl</code> or environment variables.</p><h3 class="graf graf--h"><strong>Command Line</strong></h3><p class="graf graf--p">When <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/guides/command-line">running Cypress from the Command Line</a> you can pass a <code>--config</code> flag.</p><p class="graf graf--p"><strong>Examples:</strong></p><pre><code>cypress open --config pageLoadTimeout=30000,baseUrl=https://myapp.com
</code></pre><pre><code>cypress run --config integrationFolder=tests,videoUploadOnPasses=false
</code></pre><pre><code>cypress run --browser firefox --config viewportWidth=1280,viewportHeight=720
</code></pre><p class="graf graf--p">For more complex configuration objects, you may want to consider passing a <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify">JSON.stringified</a> object surrounded by single quotes.</p><pre><code>cypress open --config '{"watchForFileChanges":false,"testFiles":["**/*.js","**/*.ts"]}'
</code></pre><h3 class="graf graf--h"><strong>Runner Specific Overrides</strong></h3><p class="graf graf--p">You can override configuration for either the E2E or <a target="_blank" rel="noopener noreferrer nofollow" class="markup--anchor" href="https://docs.cypress.io/guides/component-testing/introduction/">Component Testing</a> runner using the <code>e2e</code> and <code>component</code> options.</p><p class="graf graf--p"><strong>Examples</strong></p>
`;
}
export const jsonContentD = {
type: "doc",
content: [
{
type: "heading",
attrs: { level: 2 },
content: [
{ type: "text", text: "The Node version printed in the Node.js " },
{
type: "text",
marks: [{ type: "textStyle", attrs: { color: "" } }],
text: "Version",
},
{ type: "text", text: " panel is used in Cypress to:" },
],
},
{ type: "paragraph" },
{
type: "ImageBlock",
attrs: {
url: "https://media1.giphy.com/media/3ohs7HdhQA4ffttvrO/giphy.gif",
src: null,
width: 480,
height: 480,
loading: false,
loading_progress: 0,
caption: "caption!",
direction: "left",
file: null,
aspect_ratio: { width: 480, height: 480, ratio: 100 },
},
},
{
type: "paragraph",
content: [
{
type: "text",
text: "hola como estas I am very good and you this is the story of that Mary Lou did big time Big Bird big big boobs and then the lady Lilith ellise tired and leaves your do very low very low I want to live tonight by the new really countdown night I'm running kind of middle a the chicken ",
},
{ type: "text", marks: [{ type: "bold" }], text: "nevermind" },
{
type: "text",
text: " DiCaprio Pines everyone tonight both of them in the raking in the money moves Bueller I'm the sole in the crane than by there and its crying in the pride is too I am very cute and you this is the story of Mary to do did Big Time big bird big boobs and the little little league and then the little lady lived at least I added",
},
],
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{ type: "text", text: "Build files in the " },
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/references/configuration#Folders-Files",
target: "_blank",
},
},
],
text: "integrationFolder",
},
{ type: "text", text: "." },
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{ type: "text", text: "Build files in the " },
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/references/configuration#Folders-Files",
target: "_blank",
},
},
],
text: "supportFile",
},
{ type: "text", text: "." },
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{ type: "text", text: "Execute code in the " },
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/references/configuration#Folders-Files",
target: "_blank",
},
},
],
text: "pluginsFile",
},
{ type: "text", text: "." },
],
},
],
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "Cypress comes automatically bundled with a set Node version by default. You can see the bundled version by running the ",
},
{ type: "text", marks: [{ type: "code" }], text: "cypress version" },
{ type: "text", text: " command, for example:" },
],
},
{
type: "codeBlock",
attrs: { language: null },
content: [
{
type: "text",
text: "npx cypress version\n\tCypress package version: 6.2.1\n\tCypress binary version: 6.2.1\n\tElectron version: 11.1.1\n\tBundled Node version: 12.18.3\n\t",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "You may want to use a different Node version if the code executing from the plugins file requires features present in a different Node version from the Node version bundled with Cypress. You can use the Node version detected on your system by setting the ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/references/configuration#Node-version",
target: "_blank",
},
},
],
text: "nodeVersion",
},
{ type: "text", text: " configuration to " },
{ type: "text", marks: [{ type: "code" }], text: "system" },
{
type: "text",
text: ". For example, you need to use the system Node if you want to load ",
},
{ type: "text", marks: [{ type: "code" }], text: "node-sass" },
{ type: "text", text: " or " },
{ type: "text", marks: [{ type: "code" }], text: "sqlite3" },
{ type: "text", text: " modules from your plugins file." },
],
},
{
type: "ImageBlock",
attrs: {
url: null,
src: "https://docs.cypress.io/_nuxt/img/test-runner-settings-nodejs-version.4028364.jpg",
width: 1000,
height: 702,
loading: false,
loading_progress: 0,
caption: "caption!",
direction: "center",
file: null,
aspect_ratio: { width: 1000, height: 702, ratio: 70.19999999999999 },
},
},
{
type: "heading",
attrs: { level: 3 },
content: [
{ type: "text", marks: [{ type: "bold" }], text: "Experiments" },
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "Configuration might include experimental options currently being tested. See ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/references/experiments",
target: "_blank",
},
},
],
text: "Experiments",
},
{ type: "text", text: " page." },
],
},
{
type: "heading",
attrs: { level: 2 },
content: [
{ type: "text", marks: [{ type: "bold" }], text: "Overriding Options" },
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "Cypress gives you the option to dynamically alter configuration values. This is helpful when running Cypress in multiple environments and on multiple developer machines.",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "This gives you the option to do things like override the ",
},
{ type: "text", marks: [{ type: "code" }], text: "baseUrl" },
{ type: "text", text: " or environment variables." },
],
},
{
type: "heading",
attrs: { level: 3 },
content: [
{ type: "text", marks: [{ type: "bold" }], text: "Command Line" },
],
},
{
type: "paragraph",
content: [
{ type: "text", text: "When " },
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/guides/command-line",
target: "_blank",
},
},
],
text: "running Cypress from the Command Line",
},
{ type: "text", text: " you can pass a " },
{ type: "text", marks: [{ type: "code" }], text: "--config" },
{ type: "text", text: " flag." },
],
},
{
type: "paragraph",
content: [{ type: "text", marks: [{ type: "bold" }], text: "Examples:" }],
},
{
type: "codeBlock",
attrs: { language: null },
content: [
{
type: "text",
text: "cypress open --config pageLoadTimeout=30000,baseUrl=https://myapp.com\n\t",
},
],
},
{
type: "codeBlock",
attrs: { language: null },
content: [
{
type: "text",
text: "cypress run --config integrationFolder=tests,videoUploadOnPasses=false\n\t",
},
],
},
{
type: "codeBlock",
attrs: { language: null },
content: [
{
type: "text",
text: "cypress run --browser firefox --config viewportWidth=1280,viewportHeight=720\n\t",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "For more complex configuration objects, you may want to consider passing a ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify",
target: "_blank",
},
},
],
text: "JSON.stringified",
},
{ type: "text", text: " object surrounded by single quotes." },
],
},
{
type: "codeBlock",
attrs: { language: null },
content: [
{
type: "text",
text: 'cypress open --config \'{"watchForFileChanges":false,"testFiles":["**/*.js","**/*.ts"]}\'\n\t',
},
],
},
{
type: "heading",
attrs: { level: 3 },
content: [
{
type: "text",
marks: [{ type: "bold" }],
text: "Runner Specific Overrides",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "You can override configuration for either the E2E or ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://docs.cypress.io/guides/component-testing/introduction/",
target: "_blank",
},
},
],
text: "Component Testing",
},
{ type: "text", text: " runner using the " },
{ type: "text", marks: [{ type: "code" }], text: "e2e" },
{ type: "text", text: " and " },
{ type: "text", marks: [{ type: "code" }], text: "component" },
{ type: "text", text: " options." },
],
},
{
type: "paragraph",
content: [{ type: "text", marks: [{ type: "bold" }], text: "Examples" }],
},
],
};
export const jsonContent2 = {
type: "doc",
content: [
{
content: [
{
text: "https://www.youtu",
marks: [
{
type: "link",
attrs: { href: "https://www.youtube.com ", target: "_blank" },
},
],
type: "text",
},
{
text: "be.",
marks: [
{ type: "textStyle", attrs: { color: "#dd1010" } },
{
type: "link",
attrs: { href: "https://www.youtube.com ", target: "_blank" },
},
],
type: "text",
},
{
text: "com ",
marks: [
{
type: "link",
attrs: { href: "https://www.youtube.com ", target: "_blank" },
},
],
type: "text",
},
{ text: " iho", type: "text" },
{ text: "ij o", marks: [{ type: "bold" }], type: "text" },
{ text: "ij", type: "text" },
],
type: "paragraph",
},
],
};
export const contentDemoDDD = {
type: "doc",
content: []
}
export const contentDemo = {
type: "doc",
content: [
{
type: "heading",
attrs: {
level: 1,
},
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "Dante 3 - This is it!",
},
],
},
{
type: "heading",
attrs: {
level: 2,
},
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "Just another medium clone built on top of TipTap",
},
],
},
{
type: "blockquote",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Dante3 is a Tiptap port of ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://github.com/michelson/Dante/tree/master/packages/dante2",
target: "_blank",
},
},
],
text: "Dante2 (Draftjs) ",
},
{
type: "text",
text: ". This version is built on top of ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://www.tiptap.dev/",
target: "_blank",
},
},
],
text: "TipTap",
},
{
type: "text",
text: " and reaches all Dante2's features with a shiny ultra mega super uber maintainable architecture.",
},
],
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "See the demo at: ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://dante.vercel.com/",
target: "_blank",
},
},
],
text: "dante-editor.dev",
},
],
},
{
type: "heading",
attrs: {
level: 2,
},
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "Why rewrite a new version of Dante?",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "The previous version (Dante2) was made on DraftJs, that's a facebook library to build WYSIWYG editor, I'd choose that technology because it implemented a very interesting data model and abstracted many parts of the heuristics implementation that ",
},
{
type: "text",
marks: [
{
type: "link",
attrs: {
href: "https://github.com/michelson/Dante/tree/master/packages/dante1-legacy",
target: "_blank",
},
},
],
text: "Dante1 (the previous version)",
},
{
type: "text",
text: " built as a naive implementation relying a lot on DOM manipulation, So Dante2 was great and is working on a ton of production websites. Sadly over the last years this library has not received much attention from maintainers. Among the ~700 unattended reported issues there are some that have become a deal breaker for me:",
},
],
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Bad mobile support.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "~1MB added to your bundle (immutablejs is heavy)",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Not created for realtime collab.",
},
],
},
],
},
],
},
{
type: "heading",
attrs: {
level: 2,
},
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "My bet, ProseMirror/TipTap",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "After shopping many editors libraries, I mean after tried to implement Dante on almost all of them ",
},
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "(Trix, Editorjs, Quilljs, Slate, Prosemirror)",
},
{
type: "text",
text: " I've choosen TipTap library (which is based on Prosemirror library)., I guess all editors libraries have their own flaws but after review it all TipTap is the best of it's class, very well designed/architectured, and I love the community around their ecosystem. So that's it.",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "Features:",
},
],
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Configurable and extensible extensions / plugins / components",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Undo/redo.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Save Content as a data JSON/HTML structure.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Load Content as a data JSON/HTML structure.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Styled components Theme support (built in light/dark themes).",
},
],
},
],
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "Block based content",
},
{
type: "text",
text: ":",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
text: "Dante editor can be extended with (React) components to, currently there are default components to be used as is:",
},
],
},
{
type: "bulletList",
content: [
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Image upload for paste html.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Video embed.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Video Recorder.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Embed.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Divider.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Speech.",
},
],
},
],
},
{
type: "listItem",
content: [
{
type: "paragraph",
content: [
{
type: "text",
text: "Giphy.",
},
],
},
],
},
],
},
{
type: "heading",
attrs: {
level: 2,
},
content: [
{
type: "text",
marks: [
{
type: "bold",
},
],
text: "Installation",
},
],
},
{
type: "paragraph",
content: [
{
type: "text",
marks: [
{
type: "code",
},
],