-
Notifications
You must be signed in to change notification settings - Fork 382
-
Notifications
You must be signed in to change notification settings - Fork 382
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
Embed block: "Convert to link" causes console error #2552
Comments
I assume "Convert to link" tries to create a paragraph block? If so, this is closely related to WordPress/gutenberg#15883 / #2455 and likely needs to be fixed upstream using a similar fix as WordPress/gutenberg#15885. |
@swissspidy That's right, it tries to convert to a paragraph block. Wondering if we should hide the link in AMP Stories. Not sure if there's a good selector though. Thoughts? |
Ideally we'd fix this upstream so the button would not show when the block type has been unregistered :-) Not sure about a selector to hide the button in the meantime, I'd need to test it. |
Agreed!
We could target the second button of the error area which suggests converting to a link. However, not sure if that's reliable. I guess that if it's an upstream issue then it'd be OK to leave as it is for now as well. |
Here's the upstream code in question: |
Steps to reproduce:
https://amp.wordpress.test
.Sorry, this content could not be embedded.
, click "Convert to link"The text was updated successfully, but these errors were encountered: