You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Slideshow block has duplicated caption in the Editor for sites with FSE themes. #39459
Looks like what's going on here is that the swiper library is loaded asynchronously. Webpack's async loader doesn't know anything about Gutenberg's iframe editor, so swiper.css is only async-loaded at the top level, not in the iframe.
Disabling the Gutenberg plugin seems to also turn off the iframe editor, so the top-level-loaded swiper.css takes effect there.
Looks like the Map block has a hack to work around this (see #19552). Podcast Player is doing something seemingly similar (see #19578), but I think that one is more along the lines of needing to use the 'enqueue_block_assets' hook (now that it exists) rather than async loading from webpack.
Looking at options, I wonder if we could make use of mini-css-extract-plugin's import option to have it automatically load the styles inside Gutenberg's iframe when the iframe is present.
Activity
github-actions commentedon Sep 19, 2024
Support References
This comment is automatically generated. Please do not edit it.
anomiex commentedon Sep 23, 2024
Looks like what's going on here is that the
swiperlibrary is loaded asynchronously. Webpack's async loader doesn't know anything about Gutenberg's iframe editor, soswiper.cssis only async-loaded at the top level, not in the iframe.Disabling the Gutenberg plugin seems to also turn off the iframe editor, so the top-level-loaded
swiper.csstakes effect there.Looks like the Map block has a hack to work around this (see #19552). Podcast Player is doing something seemingly similar (see #19578), but I think that one is more along the lines of needing to use the 'enqueue_block_assets' hook (now that it exists) rather than async loading from webpack.
anomiex commentedon Sep 23, 2024
Looking at options, I wonder if we could make use of mini-css-extract-plugin's
importoption to have it automatically load the styles inside Gutenberg's iframe when the iframe is present.jartes commentedon Sep 24, 2024
📌 ACTIONS