@@ -58,6 +58,22 @@ import {
58
58
wysiwygPreset ,
59
59
MarkdownExtension ,
60
60
TOP_50_TLDS ,
61
+ BidiExtension ,
62
+ GapCursorExtension ,
63
+ ShortcutsExtension ,
64
+ TrailingNodeExtension ,
65
+ HardBreakExtension ,
66
+ HorizontalRuleExtension ,
67
+ BlockquoteExtension ,
68
+ CodeBlockExtension ,
69
+ HeadingExtension ,
70
+ IframeExtension ,
71
+ BulletListExtension ,
72
+ OrderedListExtension ,
73
+ TaskListExtension ,
74
+ CodeExtension ,
75
+ StrikeExtension ,
76
+ UnderlineExtension ,
61
77
} from "remirror/extensions" ;
62
78
import {
63
79
Remirror ,
@@ -564,8 +580,6 @@ const MyEditor = ({
564
580
const { manager, state, setState } = useRemirror ( {
565
581
extensions : ( ) => [
566
582
new PlaceholderExtension ( { placeholder } ) ,
567
- // new BoldExtension(),
568
- // new ItalicExtension(),
569
583
new ReactComponentExtension ( ) ,
570
584
new TableExtension ( ) ,
571
585
new TextHighlightExtension ( ) ,
@@ -575,14 +589,39 @@ const MyEditor = ({
575
589
autoLink : true ,
576
590
autoLinkAllowedTLDs : [ "dev" , ...TOP_50_TLDS ] ,
577
591
} ) ,
578
- new ImageExtension ( { enableResizing : true } ) ,
579
- new DropCursorExtension ( ) ,
580
592
new MarkdownExtension ( ) ,
581
593
new MyYjsExtension ( { getProvider : ( ) => provider , id } ) ,
582
594
new MathInlineExtension ( ) ,
583
595
new MathBlockExtension ( ) ,
584
596
// new CalloutExtension({ defaultType: "warn" }),
585
- ...wysiwygPreset ( ) ,
597
+ // Plain
598
+ new BidiExtension ( ) ,
599
+ new DropCursorExtension ( ) ,
600
+ new GapCursorExtension ( ) ,
601
+ new ShortcutsExtension ( ) ,
602
+ new TrailingNodeExtension ( ) ,
603
+ // Nodes
604
+ new HardBreakExtension ( ) ,
605
+ new ImageExtension ( { enableResizing : true } ) ,
606
+ new HorizontalRuleExtension ( ) ,
607
+ new BlockquoteExtension ( ) ,
608
+ new CodeBlockExtension ( ) ,
609
+ new HeadingExtension ( ) ,
610
+ new IframeExtension ( ) ,
611
+ new BulletListExtension ( ) ,
612
+ new OrderedListExtension ( ) ,
613
+ new TaskListExtension ( ) ,
614
+
615
+ // Marks
616
+ new BoldExtension ( ) ,
617
+ new CodeExtension ( ) ,
618
+ new StrikeExtension ( ) ,
619
+ new ItalicExtension ( ) ,
620
+ new LinkExtension ( {
621
+ autoLink : true ,
622
+ autoLinkAllowedTLDs : [ "dev" , ...TOP_50_TLDS ] ,
623
+ } ) ,
624
+ new UnderlineExtension ( ) ,
586
625
] ,
587
626
onError : ( { json, invalidContent, transformers } ) => {
588
627
// Automatically remove all invalid nodes and marks.
0 commit comments