React-draft-wysiwyg: Copy and Pasting List bug

Created on 13 Jul 2018  路  2Comments  路  Source: jpuri/react-draft-wysiwyg

screenshot

Good day,

I've been experiencing a bug in the editor when we copy a list from one editor to another.

Please see attached screenshot.

Willing to make a PR to fix the issue just probably point me to the files needed to look at.

Thanks

Most helpful comment

I met the same bug, and I work out by using handlePastedText function to override.
<Editor ... handlePastedText={() => false}>

All 2 comments

I think the problem lies in html-to-draftjs library.

<ul>
<li><div>123</div></li>
<li><div>456</div></li>
</ul>

if the list html is constructed like in the snippet above, it will render the div content separated from the li content like <li></li> <div>123</div> in the editor.

I met the same bug, and I work out by using handlePastedText function to override.
<Editor ... handlePastedText={() => false}>

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trongbang86 picture trongbang86  路  3Comments

Leadrive picture Leadrive  路  3Comments

kcabading picture kcabading  路  3Comments

jpuri picture jpuri  路  4Comments

DiegoGallegos4 picture DiegoGallegos4  路  4Comments