Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Trailing whitespace stripped on pasting rich text #3085

@GaurangTandon

Description

@GaurangTandon

🐛 Bug Report

Steps to reproduce

  1. Copy the styled text "foo bar " with the trailing whitespace (without quotes).
  2. Visit https://draftjs.org/ and paste the copied text into the sample editor.

Expected behavior

Trailing whitespace is retained in the pasted content.

Actual behavior

Trailing whitespace is removed in the pasted content.

image

Notes

The issue doesn't appear for plain text copied content.

Version information

Reproduced for the example build on the website. I am a new user, and not sure for how long this has been an issue.

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