Skip to content

Youtube block - pasting link clearing existing classes  #46627

@tomektomczuk

Description

@tomektomczuk

Description

When you add any class to the Youtube block that has already embedded url the class is not save after page refresh.

Step-by-step reproduction instructions

  1. Add Youtube block
  2. Add any class and save page - the class is now saved.
  3. Open page click the block and paste any YT url -> https://www.youtube.com/watch?v=MFj_S0Nof90&list=RDCMUCFbNIlppjAuEX4znoulh0Cw&start_radio=1
  4. Now your class is overwritten by "wp-embed-aspect-16-9 wp-has-aspect-ratio"

Screenshots, screen recording, code snippet

https://www.loom.com/share/f03c97bb875342caa3019dbd83709a8b

Environment info

newest version of Wordpress

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] EmbedAffects the Embed Block[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions