JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<p>This page demonstrates a copy and paste bug on chrome.</p>
<p>Repro steps:</p>
<ol>
<li>Find a multiline text region where one line begins with a new tag.
<li>Copy the text region
<li>Paste the text into contenteditable
</ol>
<p><b>Expected behavior:</b></p>
<p>The text should paste with spaces between words intact.</p>
<p><b>Actual behavior:</b></p>
<p>The space at the line break is removed, so the words run together</p>
<p><b>Notes:</b></p>
<ul>
<li>If I paste into a plaintext region, the bug does not repro
<li>If I remove the anchor tag, the bug does not repro
<li>If the text does not break at the place where the tag starts, the bug does not repro.
</ul>
<div style="width: 10em; border: thin solid green;">
Copy this area <a href="http://www.google.com">AVeryLongWordThatWillWrap</a>
</div>
<p>
<div contenteditable="true" style="border: thin solid blue;" >
Paste into this area
</div>
<p>The result should look like "Copy this areaAVeryLongWordThatWillWrap"</p>
</body>