You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to add an iframe in a custom code block, the view tends to replace the iframe by a div, which breaks the layout of the iframe. However, the model seems to have the correct iframe since it is shown correctly in the view code modal, or by using editor.getHtml().
For example, if I add this iframe which is an embed YouTube video:
Hello,
The issue described below can be reproduced on the official demo at https://grapesjs.com/demo.html
When I try to add an iframe in a custom code block, the view tends to replace the iframe by a div, which breaks the layout of the iframe. However, the model seems to have the correct iframe since it is shown correctly in the
view code
modal, or by usingeditor.getHtml()
.For example, if I add this iframe which is an embed YouTube video:
This is what the canvas view will use, parts of the iframe attributes are now on a parent div:
The text was updated successfully, but these errors were encountered: