How do I upload screenshots from clipboard in the widget?

By default, the widget doesn’t support uploading from the clipboard. However, you can implement this functionality within a custom widget’s tab with the clipboard API which is well supported by various browsers.

You can find a code and play around with it by the link below