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

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

Open
123wowow123 opened this issue May 26, 2023 · 0 comments

Comments

@123wowow123
Copy link

123wowow123 commented May 26, 2023

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.

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