-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Closed
Copy link
Labels
Needs Copy ReviewNeeds review of user-facing copy (language, phrasing)Needs review of user-facing copy (language, phrasing)[Block] EmbedAffects the Embed BlockAffects the Embed Block[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Milestone
Description
Describe the bug
When I try to use the Embed Blocks, the preview of a valid embeddable content and the error message for an invalid URL have the same render.
To Reproduce
Steps to reproduce the behaviour:
- Create a new content.
- Add a Facebook Embed Block.
- Paste a valid content URL. E.g.: https://www.facebook.com/oohmyworld/videos/2324195200940031/
- See the error message "Previews for this are unavailable in the editor, sorry!".
- Add a Facebook Embed Block.
- Paste an invalid content URL. E.g.: https://www.facebook.com/oohmyworld/vides/2324195200940031/
- See the error message "Previews for this are unavailable in the editor, sorry!".
Expected behaviour
Gutenberg should display different error messages for failed previews and failed oEmbed API requests.
E.g.:
- Failed preview: "Previews for this are unavailable in the editor, sorry!"
- oEmbed API error: "This content URL is invalid, sorry!"
Screenshots
Edition:
Website:
Metadata
Metadata
Assignees
Labels
Needs Copy ReviewNeeds review of user-facing copy (language, phrasing)Needs review of user-facing copy (language, phrasing)[Block] EmbedAffects the Embed BlockAffects the Embed Block[Feature] BlocksOverall functionality of blocksOverall functionality of blocks[Type] EnhancementA suggestion for improvement.A suggestion for improvement.



