while cutting URLs in the Edge browser, some meta information (like title) is added:
I already used it in another project to paste links directly with the corresponding title:
Now I'm thinking to add this also to Joplin as plugin. However, I'm not sure if a plugin can get the clipboard data or if it has to be integrated directly into Joplin.
Any hints are welcome so that I'm not wasting time by implementing in the wrong direction.
Here's a link to the clipboard documentation.
And here is an example plugin that uses the clipboard api.
So I think what you suggest is possible. The only catch is that maybe you need to give it a custom keybindings (e.g. ctrl+alt+v for pasting).
You might also be interested in this discussion about additional clipboard data and how it might be implemented.
Thanks for the hints. This helped a lot to understand how pasting could work.
As next step I now diggign into how to react on paste event. As it is not possible to get the paste event from Joplin, I'm now looking into get that event from CodeMirror:
Hm, my test plugin gets CodeMirror scroll event as well as key event, but copy and paste events are not working: