[wp-trac] [WordPress Trac] #49185: Option to use text link instead of auto embed.
WordPress Trac
noreply at wordpress.org
Mon Jan 13 16:54:31 UTC 2020
#49185: Option to use text link instead of auto embed.
--------------------------+------------------------------
Reporter: paaljoachim | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Thanks for the ticket!
> Option to use text link instead of auto embed
Looking at https://github.com/WordPress/gutenberg/issues/15102, this
should be addressed in the Gutenberg repo, there's no need for a Trac
ticket for that.
Looking at https://github.com/WordPress/gutenberg/issues/13000, however,
that one needs a Trac ticket.
As reported by @jeremyfelt:
> When I paste https://www.nytimes.com/2018/12/18/technology/walt-
mossberg-quit-facebook.html into a new post, WordPress attempts to use
oEmbed to display the article, but instead just shows a partial thumbnail.
>
> If I inspect with developer tools and remove the height: auto; that NYT
delivers with the iFrame via article.story .media .image img, then I do
see that other content is available, it's just not being displayed.
>
> **To reproduce**
>
> Steps to reproduce the behavior:
>
> 1. Create a new post
> 2. Paste https://www.nytimes.com/2018/12/18/technology/walt-mossberg-
quit-facebook.html into the first (or any) paragraph block.
>
> **Expected behavior**
>
> To be honest, I would expect that a pasted NYT URL does not embed
automatically, but I'm probably in > the minority.
>
> The real expectation is probably that the embedded content appears in
full.
>
> **Desktop**
>
> OS: OSX 10.12.6
> Browser Chrome (latest)
>
> **Additional context**
>
> Using WordPress 5.0.1
>
> ...
>
> This has changed somewhat in that the (non-WordPress) NY Times URL is
detected as a WordPress embed block and results in the following code:
>
> {{{
> <!-- wp:core-embed/wordpress
{"url":"https://www.nytimes.com/2018/12/18/technology/walt-mossberg-quit-
facebook.html","type":"wp-embed","providerNameSlug":"the-new-york-
times","className":""} -->
> <figure class="wp-block-embed-wordpress wp-block-embed is-type-wp-embed
is-provider-the-new-york-times"><div class="wp-block-embed__wrapper">
> https://www.nytimes.com/2018/12/18/technology/walt-mossberg-quit-
facebook.html
> </div></figure>
> <!-- /wp:core-embed/wordpress -->
> }}}
> The display itself still appears broken as originally reported.
@youknowriad:
> I think this should probably be raised as a Core ticket instead as the
embed HTML is not generated by Gutenberg itself but by the Oembed REST
API.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49185#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list