When copy pasting from a html source like webpage, email and word editors single line is cut down or split into multiple lines with a inclusion of br tag where copy pasting the same content from plain notepad, G edit it's working perfectly.


@phantom0424 This is because when rendered on UI each line is wrapped in a div and corresponding to div the editor maps it to paragraph tag and break tag for new line if the content is wrapped in span. I hope that's the reason but couldn't find myself a solution or workaround for this would be great if someone could help out !
Anyone have any work arounds for this?
There's an issue with handlePaste.js
A quick workaround is to pass a false-returning function to handlePastedText to override the default behavior:
<Editor ... handlePastedText={() => false}>
Most helpful comment
There's an issue with handlePaste.js
A quick workaround is to pass a false-returning function to
handlePastedTextto override the default behavior: