浏览代码

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(
       child: FlowyRichText(
         key: _richTextKey,
         key: _richTextKey,
         textNode: widget.textNode,
         textNode: widget.textNode,
-        textSpanDecorator: (textSpan) => textSpan.updateTextStyle(textStyle),
+        textSpanDecorator: (textSpan) => textSpan,
         placeholderTextSpanDecorator: (textSpan) =>
         placeholderTextSpanDecorator: (textSpan) =>
             textSpan.updateTextStyle(textStyle),
             textSpan.updateTextStyle(textStyle),
         lineHeight: widget.editorState.editorStyle.lineHeight,
         lineHeight: widget.editorState.editorStyle.lineHeight,