Skip to content

Formatting of the first pasted paragraph is lost in empty Editor #4694

@zstoyanova9

Description

@zstoyanova9

Description

When pasting content inside an empty Editor, the formatting of the first paragraph gets lost.

Steps To Reproduce

  1. Copy the below content and paste it into the Editor from the following StackBlitz example - https://stackblitz.com/edit/angular-q3o9hmag

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

  1. Inspect the Editor in the console and observe how the formatting for the first <p> tag is lost in comparison to the others.

Screenshots or video

Image Image

Actual Behavior

The Editor does not preserve the formatting of the first paragraph the same way as the remaining ones.

Expected Behavior

The Editor should preserve the formatting of the first paragraph the same way as the remaining ones.

Workaround

Possible workaround - https://stackblitz.com/edit/angular-azpilkdy-vmxkszcl

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