-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Iframe tablet and mobile device previews #33342
Conversation
Size Change: -1.44 kB (0%) Total Size: 1.03 MB
ℹ️ View Unchanged
|
be870a6
to
0394693
Compare
This is great, do you think there's a way to detect block failures and have a nice message like: "This block doesn't support rendering in frame, meaning it's not possible to render them in device previews". Would that even be desirable? |
I guess it's not easy to know if it's an iframe issue or not |
Right, it's hard to tell. I think in most cases, they block will render, but it could look strange (due to something not initialising for example). We'll have to see what kind of problems we get with the release of the template editor in 5.8. |
Should we move this to the 11.2 milestone? |
yeah ideally, we should leave milestone empty on PRs and let the auto-assign bot do its work post merge. |
0394693
to
8542560
Compare
8542560
to
d08d9cf
Compare
Let's merge this. This is necessary to push forward with the iframe and increase visibility to get more testing. I'll be on the lookout for any issues introduced. The device previews are not a super essential feature, so it's fine if a block has problems previewing so that we or plugin authors can identify the issues and fix them. |
I have an issue with the new iframe previews and my block. Is there any guide on how to make sure blocks work? My styles are broken in the iframe as well as the js initialization i guess. |
@ellatrix it seems all the |
Description
Fixes #21193.
How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).