Skip to content

Bug: when content from google docs or microsoft word, font-size is lost #7718

@harshmetkel24

Description

@harshmetkel24

Lexical version: latest

Steps To Reproduce

  1. Copy content from Google docs or Ms word with some font-size applied
  2. Paste into lexical, you will see font size reset to default (15 in case of playground)

Link to code example:

The current behavior

Screen.Recording.2025-07-22.at.5.53.43.PM.mov

The expected behavior

Screen.Recording.2025-07-22.at.5.54.26.PM.mov

Impact of fix

Copy paste will improve from non-lexical editor to lexical editor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions