Description
I’m using the WordPress Custom HTML block to embed an iframe, for example:
<iframe src="https://www.photopea.com" style="width:100%; height:100vh; border:0;"></iframe>
The frontend displays normally, but in the block editor, the Custom HTML preview becomes very tall, shows a vertical scrollbar, and the editor becomes heavy. After saving/reopening the post, the block height seems to keep expanding.
Is there any way to disable the preview mode/review feature for the Custom HTML block, or prevent iframe content with height:100vh from being rendered in the editor preview?
Step-by-step reproduction instructions
- Add a Custom HTML block.
- Click Edit HTML.
- Add an iframe in the HTML tab. The iframe uses
height:100vh:
<iframe src="https://www.photopea.com" style="width:100%; height:100vh; border:0;"></iframe>
- Click Update.
- After updating, the Custom HTML block preview becomes very tall and shows a vertical scrollbar in the editor. The editor becomes heavy, even though the frontend page displays normally.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
Description
I’m using the WordPress Custom HTML block to embed an iframe, for example:
<iframe src="https://www.photopea.com" style="width:100%; height:100vh; border:0;"></iframe>The frontend displays normally, but in the block editor, the Custom HTML preview becomes very tall, shows a vertical scrollbar, and the editor becomes heavy. After saving/reopening the post, the block height seems to keep expanding.
Is there any way to disable the preview mode/review feature for the Custom HTML block, or prevent iframe content with height:100vh from being rendered in the editor preview?
Step-by-step reproduction instructions
height:100vh:<iframe src="https://www.photopea.com" style="width:100%; height:100vh; border:0;"></iframe>Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.