Skip to content

Slideshow block has duplicated caption in the Editor for sites with FSE themes. #39459

Closed

Description

@nazilya06

Impacted plugin

Jetpack

Quick summary

When the Slideshow block images include captions, they appear duplicated in the Editor. However, they display correctly in the preview.

Editor:
Screenshot 2024-09-19 at 3 00 53 PM

Preview:
Screenshot 2024-09-19 at 3 02 29 PM

Steps to reproduce

  1. Make sure your site is using the FSE theme.
  2. Add a Slideshow block
  3. Add captions to the image

A clear and concise description of what you expected to happen.

No response

What actually happened

No response

Impact

Some (< 50%)

Available workarounds?

Yes, difficult to implement

If the above answer is "Yes...", outline the workaround.

For atomic sites, I found that deactivating the Gutenberg plugin fixes it.

Platform (Simple and/or Atomic)

No response

Logs or notes

8751655-zd-a8c

Activity

  1. added
    Bug
    [Focus] Blocks
    [Plugin] Jetpack
    Needs triage
    [Feature] Misc Blocks
    on Sep 19, 2024
  2. github-actions commented on Sep 19, 2024

    @github-actions
    Contributor

    Support References

    This comment is automatically generated. Please do not edit it.

    • 8751655-zen
  3. added
    Customer Report [LEGACY]
    on Sep 19, 2024
  4. anomiex commented on Sep 23, 2024

    @anomiex
    Contributor

    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.

  5. anomiex commented on Sep 23, 2024

    @anomiex
    Contributor

    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.

  6. added and removed
    Needs triage
    on Sep 24, 2024
  7. jartes commented on Sep 24, 2024

    @jartes

    📌 ACTIONS

    • Triaged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugCustomer Report [LEGACY]Triaged[Block] Slideshow[Feature] Misc Blocks[Focus] Blocks[Plugin] Jetpack[Pri] Normal

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions