Repository navigation
Replies: 1 comment
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What happened?
Description
Live Preview always reloads the iframe when the entry changes. That call is hardcoded:
cms/src/web/assets/cp/src/js/Preview.js
Lines 444 to 446 in 41b7fc1
A full iframe reload is heavy for a Nuxt front end. Each update boots the app again.
Please add an option to overwrite this handler, so a project can run its own code instead of
updateIframe().Steps to reproduce
updateIframe()and reloads the iframe.Expected behavior
An option replaces that
updatehandler. The project injects its own code and the iframe stays mounted:Actual behavior
updatealways callsupdateIframe(). There is no option to replace it.Craft CMS version
5.11.3
PHP version
8.2.34
Operating system and version
Linux 5.14.0-162.18.1.el9_1.x86_64
Database type and version
MySQL 8.0.32
Image driver and version
Installed plugins and versions
No response
All reactions