fix: remove the unnecessary text style update

This commit is contained in:
Lucas.Xu 2022-11-28 16:17:46 +08:00
parent 6d6e61956a
commit d75645c4bc

View File

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