embed icon indicating copy to clipboard operation
embed copied to clipboard

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

Open 123wowow123 opened this issue 1 year ago • 0 comments

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.

123wowow123 avatar May 26 '23 18:05 123wowow123