Skip to content

Add a “Transform to Video Block” option when transforming a Cover Block with an embed background #74210

@JosVelasco

Description

@JosVelasco

#73023 extends background video support in core/cover to other core video embeds, like YouTube, Vimeo, etc.

Right now, when transforming a Cover block that uses an external video background, the transform options do not include a direct transform to a Video block.

Currently:

Transforming a Cover block with an embedded background video only shows the Media & Text option, but that option does not convert the URL into a core/video block on transform.

This limits workflows in which editors want to repurpose video content without rebuilding it in a separate Video block.

Allowing a Transform to Video option would:

  • Improve content portability between blocks.
  • Improve editor UX by reducing manual rebuilding steps.

Proposed solution

  • Add core/video as an additional transform target for Cover blocks where the media source is an embedded video URL.
  • If the Cover block contains an embedded video URL (e.g., YouTube), convert it into a Video block.

Steps to reproduce

  • Insert a Cover block.
  • Add media by pasting an external URL.
  • Try to transform the Cover block via Transform To….
  • Only Media & Text appears.
  • Embedded URLs are not carried to a Video & Text block, and no Video block is available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] CoverAffects the Cover Block - used to display content laid over a background image[Feature] Block TransformsBlock transforms from one block to another[Type] EnhancementA suggestion for improvement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions