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

Import/upload images from clipboard pasting instead of hotlinking #18263

Closed
sparanoid opened this issue Nov 4, 2019 · 1 comment
Closed

Import/upload images from clipboard pasting instead of hotlinking #18263

sparanoid opened this issue Nov 4, 2019 · 1 comment
Labels
[Block] Image Affects the Image Block [Feature] Paste [Type] Enhancement A suggestion for improvement.

Comments

@sparanoid
Copy link

sparanoid commented Nov 4, 2019

Is your feature request related to a problem? Please describe.
When pasting images from clipboard, there seems to have two behaviors:

  • Hotlink directly when you copy images from other websites to Gutenberg editor.
  • Upload it to the media library and insert it to your editor when you copy images from the image viewer/editor.

In most cases when I copy and paste an image from other websites, I mean to copy it and let me host it on my own server then insert it to my post. But the problem is, the default behavior of how Gutenberg inserts images from pasting from other websites is hotlinking. Hotlinked images are easily got renamed, removed, or blocked from hotlinking due to any unpredictable reason.

To make this issue clearly, I recorded a video demo: https://www.youtube.com/watch?v=NmmvQoLLJEo

Describe the solution you'd like
Import/upload external images by default when pasting from other websites. This is also how GitHub and Notion handle images from the clipboard.

Describe alternatives you've considered
Add an option to toggle the behavior of inserting images from the clipboard.

@jorgefilipecosta jorgefilipecosta added [Block] Image Affects the Image Block [Feature] Paste [Type] Enhancement A suggestion for improvement. labels Nov 21, 2019
@ellatrix
Copy link
Member

Duplicate of #2515.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Image Affects the Image Block [Feature] Paste [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants