React-draft-wysiwyg: draftjs PasteHandler not accessible to handle pasted formatted content

Created on 21 Nov 2017  路  3Comments  路  Source: jpuri/react-draft-wysiwyg

Issue:
Whenever content is pasted into the editor, all formatting is lost and the entire content will be squeezed into a single paragraph tag.

Impact of issue:
Major, end users will see the pasted content as it should be but in reality, the editor will save something completely different.

Possible suggestion:

Draftjs has a handlePastedText prop, maybe you can release the prop to be overwritten by us.

Most helpful comment

I will expose handlePastedText to be overridden by props. I will release this change very soon.

All 3 comments

Agree. I am having the same issue to use it with typescript.

+1

I will expose handlePastedText to be overridden by props. I will release this change very soon.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Satherial picture Satherial  路  4Comments

kcabading picture kcabading  路  3Comments

FriOne picture FriOne  路  3Comments

dahudson88 picture dahudson88  路  3Comments

DiegoGallegos4 picture DiegoGallegos4  路  4Comments