Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

htmlToDraft issue with images as links #98

Open
KyriacosP opened this issue May 13, 2021 · 0 comments
Open

htmlToDraft issue with images as links #98

KyriacosP opened this issue May 13, 2021 · 0 comments

Comments

@KyriacosP
Copy link

KyriacosP commented May 13, 2021

I'm trying to add the following html to react-draft-wysiwyg Editor using the method described here https://jpuri.github.io/react-draft-wysiwyg/#/docs in the HTML section


<p><a href="link"><img src="image_source" alt="image_alt"/></a></p>

but the a tag gets removed by the htmlToDraft function.
Resulting in this html:


<p></p>
<img src="image_source" alt="image_alt" style="height: ;width: "/>

is there a way to get around this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant