Paste images from your clipboard directly into Overleaf (Community Edition, Cloud and Pro)
This is based on the original version by Sebastian Haas. This version has been tweaked to work in Overleaf's new editor, has slightly modernised code and other minor improvements.
This script will automatically upload images to your project and add a snippet including the image in the document when pasting it in using Ctrl + v. By default, the image will be uploaded to the assets
folder which will be created if it does not already exist. The folder can be changed by tweaking the assetsFolder
constant in the beginning of the file.