embed
embed copied to clipboard
Calling editor.blocks.renderFromHTML(htmlContent) does not render embed html blocks
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.