RichText component: pasting text ignores disableLineBreaks setting #67387
Labels
[Feature] Rich Text
Related to the Rich Text component that allows developers to render a contenteditable
[Status] In Progress
Tracking issues with work in progress
[Type] Bug
An existing feature does not function as intended
Description
When pasting text into a
RichText
component withdisableLineBreaks={true}
, the line breaks (\r and \n) are replaced withbr
tags instead of being stripped. Possibly related: #59548.Step-by-step reproduction instructions
See code below. Copy and paste a text into the field which contains plain text line breaks (not
br
tags).Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
The text was updated successfully, but these errors were encountered: