gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Responsive images and image linking

Open trenzterra opened this issue 8 years ago • 3 comments

Issue Overview

In Gutenberg, when inserting an image block, there does not seem to have an option to link to the original media file, as with the classic editor.

A more concerning problem is that Gutenberg does not seem to work at all with responsive images and srcset as implemented in WordPress 4.4. A post created with Gutenberg will always load the full size image regardless of viewport size.

Expected Behavior

Gutenberg should implement an option to link to original media file or attachment page, as per the classic editor. Currently, the gallery block does this.

In addition, responsive images should work as per the classic editor.

Current Behavior

Possible Solution

Screenshots / Video

Related Issues and/or PRs

Todos

  • [ ] Tests
  • [ ] Documentation

trenzterra avatar Dec 25 '17 16:12 trenzterra

See #869 for responsive images.

mtias avatar Jan 03 '18 15:01 mtias

https://github.com/WordPress/gutenberg/pull/4898 implemented this.

noisysocks avatar Mar 26 '18 03:03 noisysocks

I see this has been closed a while ago, but couldn't find any further mention of the option to link the image to the original media file or attachment page. Does anyone care to comment on whether this is a planned feature?

hvianna avatar Apr 23 '18 12:04 hvianna