فهرست منبع

fix: remove the unnecessary text style update

Lucas.Xu 2 سال پیش
والد
کامیت
d75645c4bc
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/rich_text.dart

+ 1 - 1
frontend/app_flowy/packages/appflowy_editor/lib/src/render/rich_text/rich_text.dart

@@ -72,7 +72,7 @@ class _RichTextNodeWidgetState extends State<RichTextNodeWidget>
       child: FlowyRichText(
         key: _richTextKey,
         textNode: widget.textNode,
-        textSpanDecorator: (textSpan) => textSpan.updateTextStyle(textStyle),
+        textSpanDecorator: (textSpan) => textSpan,
         placeholderTextSpanDecorator: (textSpan) =>
             textSpan.updateTextStyle(textStyle),
         lineHeight: widget.editorState.editorStyle.lineHeight,