pasteimages
pasteimages copied to clipboard
Allow user to add images also from clipboard files and clipboard image URLs
like this Atom plugin: https://atom.io/packages/qiniu-uploader
you can paste image directly into a url link , it will upload the image to a cloud storage
I think adding cloud storage support would be a different ticket. Feel welcome to provide a PR.
looks like this fork https://github.com/ITGrocery/markdown-image-paste / https://plugins.jetbrains.com/plugin/10001-markdown-image-paste is doing it. I wonder if the source code is based on this plugin without any attribution to the original source?
Thanks for the pointer @lhotari . Indeed, it started off with this plugin's codebase, which is good and intended, To be fair, there's a pointer at the end of the Readme. However, they ditched all the author attributions from the code which is not the best practice imho. (fyi @ITGrocery)
I have implemented it here: https://github.com/soywiz/pasteimages/commit/de08437ee3b2e1a96bd6880c7e0a25e0d40d75bc#diff-653631669107723176ffae1c8220f0910e312e3e0d9ddca6f099e0e642876ed4R31-R36
(for files)
For URLs I'm not sure how that would work in the case the user just want to paste that URL without inserting any image.
Would you be willing to prepare the fix as PR?
Done