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

Reusable Block Embed Not Working #42056

Open
rossanafmenezes opened this issue May 11, 2020 · 12 comments
Open

Reusable Block Embed Not Working #42056

rossanafmenezes opened this issue May 11, 2020 · 12 comments
Labels
caused-by-gutenberg-upgrade Labels an issue (or PR) as caused by or related to a Gutenberg upgrade on WPCOM. Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. Triaged To be used when issues have been triaged. [Type] Bug

Comments

@rossanafmenezes
Copy link

Steps to reproduce

  1. Create a new page or post
  2. Add an embed block that was added as a reusable block (in this specific case a PDF file from the Media LIbrary was added)
  3. Publish the page or hit the Preview button

What I expected

I would expect the PDF file to be embedded and show the file just like when I use the Embed block that is not a reusable block like this:

What happened instead

The block shows only the link to the file. You can compare both on the Screenshot below. The block above it is a regular embed block and the PDF file shows as it should. Below that there's the exact same block only it was used as a reusable block and only a link shows:

Context / Source

This issue was brought by a user on HC - 21004768

They are using a retired theme (Heart&Style) so at first I thought that was the issue but I tried on my test blog using several different themes including the new ones like 2020, Barnsbury, etc and the issue is replicated on every theme I tried.

Link to my test blog https://1234hetrialtest.wordpress.com/reusable-blocks-test/

#user-report

@davipontesblog davipontesblog added [Type] Bug [Feature] Post/Page Editor The editor for editing posts and pages. labels Jun 8, 2020
@vinnykaur
Copy link

Came across another one with Youtube embeds not working as reusable blocks.
zd-3450169

@formosattic
Copy link

formosattic commented Feb 2, 2021

Same issue reported on WordPress/gutenberg#14608

In the case of YouTube, using the shortcode worked, but must be in a Paragraph block, the Shortcode block won't work:

[youtube https://www.youtube.com/watch?v=BK4ftD33FUI]

+1 3675264-zd-woothemes

@sbathompson-he
Copy link

Same issue with a user today.

This did work though: In the case of YouTube, using the shortcode worked, but must be in a Paragraph block, the Shortcode block won't work: [youtube https://www.youtube.com/watch?v=BK4ftD33FUI]

27349711-HC

@katiebethbrown
Copy link

katiebethbrown commented Feb 12, 2021

Another report here: 27701717-hc

Youtube embed inside reusable block displays as a blank space with the youtube link below:

dJwPTp

Changing the reusable block to regular blocks resolves as does placing the embed outside the reusable block content. I also shared the shortcode as a workaround.

@lakellie
Copy link

This is a Gutenberg issue: WordPress/gutenberg#14608

@Robertght
Copy link

Another case in #30010011-hc

@ChrissiePollock
Copy link

Another report on 31684050-hc We used shortcode in the paragraph block to fix.

@synora synora added the Triaged To be used when issues have been triaged. label Sep 19, 2021
@dpasque dpasque added the caused-by-gutenberg-upgrade Labels an issue (or PR) as caused by or related to a Gutenberg upgrade on WPCOM. label Sep 20, 2021
@dpasque
Copy link
Contributor

dpasque commented Sep 20, 2021

Closing in favor of the Gutenberg issue, which can be found here: WordPress/gutenberg#14608

@dpasque dpasque closed this as completed Sep 20, 2021
@formosattic
Copy link

+1 27149499-hc

@dpasque
Copy link
Contributor

dpasque commented Oct 4, 2021

Reopening so it can be tracked for easily from the A8c side.

@dpasque dpasque reopened this Oct 4, 2021
@dpasque dpasque added the [Pri] Normal Schedule for the next available opportuinity. label Oct 4, 2021
@sajmes
Copy link

sajmes commented Nov 12, 2021

YouTube embed did not show when added in a reusable block. It does then show if converted to regular blocks.

Aquene.

Report: 4448310-zd-woothemes

@jorpdesigns
Copy link

Another Youtube embed not working when added in a reusable block.

Used shortcode workaround.

zd-4581424

@jeherve jeherve added Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". and removed User Report labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caused-by-gutenberg-upgrade Labels an issue (or PR) as caused by or related to a Gutenberg upgrade on WPCOM. Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Post/Page Editor The editor for editing posts and pages. [Pri] Normal Schedule for the next available opportuinity. Triaged To be used when issues have been triaged. [Type] Bug
Projects
None yet
Development

No branches or pull requests