Browse Source

fix: remove the unnecessary text style update

Lucas.Xu 2 years ago
parent
commit
d75645c4bc

+ 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,