Skip to content
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

Youtube block - pasting link clearing existing classes #46627

Closed
tomektomczuk opened this issue Dec 17, 2022 · 1 comment · Fixed by #41141
Closed

Youtube block - pasting link clearing existing classes #46627

tomektomczuk opened this issue Dec 17, 2022 · 1 comment · Fixed by #41141
Labels
[Block] Embed Affects the Embed Block [Type] Bug An existing feature does not function as intended

Comments

@tomektomczuk
Copy link

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

@t-hamano
Copy link
Contributor

@tomektomczuk

Thanks for the report.
I believe it is the same issue as #45540.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Embed Affects the Embed Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants