GrapesJS / GrapesJS/components-custom-code

iframe being rendered strangely in the canvas view

オープン
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
81
フォーク
47
PR マージ指標
30日以内にマージされた PR はありません

説明

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 using `editor.getHtml()`.

For example, if I add this iframe which is an embed YouTube video:
```html

```

This is what the canvas view will use, parts of the iframe attributes are now on a parent div:
```html






```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。