Closed getdave closed 1 month ago
@t-hamano if you know how to detect whether the editor is iframed please do let me know otherwise we'll look into it.
I haven't explored this in depth yet, but what about forcing an iframe in zoomed-out mode, just like the mobile and tablet views do?
Perhaps it would be a good idea to add a condition __unstableGetEditorMode() === 'zoom-out'
to either:
Update: #64351 has been merged, so the logic that determines whether the editor should run as an iframe has been updated. This means that the presence of custom fields/meta boxes is no longer tied to whether the editor is iframed or not.
One way to reproduce this issue is to have the Classic theme and the Jetpack plugin enabled. The Jetpack plugin has custom blocks that are not version 3, which is what prevents the editor from running as an iframe.
I wonder if we should just disable the experience if there is no iframe?
I wonder if we should just disable the experience if there is no iframe?
Yes. That's the purpose of the Issue so I say 👍
We need to detect that the Editor is iframed before we enable/expose the Zoom Out feature to users (even if it's still behind an experiment).
@getdave The easiest step is to enable custom fields, but that might be an issue we already had when the zoom out mode toggle was in a dropdown.
https://github.com/user-attachments/assets/de1237c1-caab-4661-8f13-d44306ee11b8
Originally posted by @t-hamano in https://github.com/WordPress/gutenberg/issues/65183#issuecomment-2348351661