Skip to content

Calling editor.blocks.renderFromHTML(htmlContent) does not render embed html blocks #109

Open
@123wowow123

Description

@123wowow123

Calling editor.blocks.renderFromHTML(htmlContent) does not render embed html blocks.

Sample htmlContent:

<div class=\"embed\"><iframe class=\"embed-youtube\" frameborder=\"0\" src=\"https://www.youtube.com/embed/m7atGkba-Z8\"
        frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope;
        picture-in-picture\" allowfullscreen></iframe></div>
<p class=\"paragraph\"> In a conference call following the release of the results, CEO Elon Musk made new comments
    announcing that Tesla plans to hold a “handover event,” which generally means the first deliveries of a new car,
    toward “the end of the third quarter.” </p>

Only the '.paragraph' gets rendered onto the editor but the '.embed' element are lost.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions