Browse Source

fix: bulleted-list typo

Lucas.Xu 2 years ago
parent
commit
5fdcdbd357

+ 3 - 3
frontend/app_flowy/packages/flowy_editor/example/assets/example.json

@@ -144,7 +144,7 @@
           }
           }
         ],
         ],
         "attributes": {
         "attributes": {
-          "subtype": "bullet-list"
+          "subtype": "bulleted-list"
         }
         }
       },
       },
       {
       {
@@ -155,7 +155,7 @@
           }
           }
         ],
         ],
         "attributes": {
         "attributes": {
-          "subtype": "bullet-list"
+          "subtype": "bulleted-list"
         }
         }
       },
       },
       {
       {
@@ -170,7 +170,7 @@
           }
           }
         ],
         ],
         "attributes": {
         "attributes": {
-          "subtype": "bullet-list"
+          "subtype": "bulleted-list"
         }
         }
       },
       },
       {
       {

+ 1 - 1
frontend/app_flowy/packages/flowy_editor/lib/service/editor_service.dart

@@ -25,7 +25,7 @@ NodeWidgetBuilders defaultBuilders = {
   'text': RichTextNodeWidgetBuilder(),
   'text': RichTextNodeWidgetBuilder(),
   'text/checkbox': CheckboxNodeWidgetBuilder(),
   'text/checkbox': CheckboxNodeWidgetBuilder(),
   'text/heading': HeadingTextNodeWidgetBuilder(),
   'text/heading': HeadingTextNodeWidgetBuilder(),
-  'text/bullet-list': BulletedListTextNodeWidgetBuilder(),
+  'text/bulleted-list': BulletedListTextNodeWidgetBuilder(),
   'text/number-list': NumberListTextNodeWidgetBuilder(),
   'text/number-list': NumberListTextNodeWidgetBuilder(),
   'text/quote': QuotedTextNodeWidgetBuilder(),
   'text/quote': QuotedTextNodeWidgetBuilder(),
 };
 };