Skip to content

htmlToDraft issue with images as linksΒ #98

@KyriacosP

Description

@KyriacosP

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions