Skip to content

Bug: linebreak insertion breaks format inheritance #8160

@kimseongyu

Description

@kimseongyu

Lexical version: 0.40.0

Steps To Reproduce

  1. Type bolded "hello" in the editor
  2. Move the cursor between "he" and "llo"
  3. Press the Shift + Enter key twice
  4. Move the cursor between the two linebreaks
  5. Start Typing any character

Link to code example: playground

The current behavior

issue.mov

The expected behavior

If a user inserts linebreaks within a formatted range, those linebreaks should maintain the formatting.

Impact of fix

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions