-
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
Iframed Content Roadmap #33346
Comments
Hi @ellatrix 👋 Do you have any updates on this currently ? :) Would love to better understand what would be needed to make this happen in 6.0 or one of the later releases :) |
Cross-referencing a bug with the rendering in the iframe inside the template editor here: #38110 |
Cross-referencing a 5.9 regression: #38667. |
Not sure where else to leave this comment, but there is one particular issue that I'm dealing with now that will probably get a lot worse as iframes proliferate: SVG linking. I am currently working on a site that uses a single SVG loaded in the header with clip paths that are referenced by id throughout the site. I'm seeing an issue currently with block preview iframes, as there doesn't seem to be a way to hook into them to add things, and enqueueing interfaces really only exist for scripts and styles. I'd love to see an asset API similar to script & style enqueuing that is more generic and able to handle different tags so that I could only "enqueue" the clip paths I need for the specific blocks rendered on the page like we can do now for scripts and styles. But any way to hook into these iframes as suggested in #33803 would help mitigate this. |
@cr0ybot I believe the duotone filter and layout filter add svg and style elements to the block canvas. Maybe have a look there for how it can be done? |
Hi @ellatrix! I remember following this issue a while ago - I think it was on another thread or issue? - and I was hoping the block editor would be iframed by 6.0. Do you have knowledge of a timeframe/version number goal for this? Is there another issue that I can follow or is this the best place to be up-to-date? |
@davidwebca thanks for following up here. I see you found #20797 and commented there. There's also this draft PR with recent comments after a meeting: #21102 (comment) That's the latest on these efforts and you're following in all of the right places. Other work has just taken precedence as you can see from the latest roadmaps: https://make.wordpress.org/core/2022/06/04/roadmap-to-6-1/ |
Thanks so much! |
I've just run into the same issue with SVGs. Deconstructing the duotone filter has led me to a bit of a deadend. The way it works is to use I think this suggestion might solve the requirement more easily. |
Goal: to iframe all editor instances with front-end content.
It seems best to continue to gradually iframe the remaining content. For 5.9, I propose that we iframe the device previews and the block and pattern previews, and iframe the post editor at a later point. This is to give people time to test their blocks, address issues, contact us in case of problems, yet to slightly push them to do so. The previews (block, patterns and full content for device preview) are a good way to do that because they are non-essential while more visible.
Done ✅
WP 5.9-6.0
.editor-styles-wrapper
#18571.block-editor
, we'll need to create a separate stylesheet for editor content (that will be loaded in the iframe). We shouldn't load the whole package stylesheet which mostly consists of UI selectors.WP 6.2
Post editorPost editor. Maybe this could be done earlier while it remains off by default. In some future release we could simply flip the switch. Another plugin could potentially flip the switch too. There was some interest for that.Dev notes
The text was updated successfully, but these errors were encountered: