For example, if I’m on my Windows 10, and I press my keyboard’s ‘Print Screen’ key, I would like the screenshot to show up in my editor in a <img /> when I do ‘ctrl-v’ to paste it.
Any ideas how to make that possible?
Edit: Sorry I should add- I have tried creating Plugin and hook up the paste and handlePaste but they all returned empty data in the clipboardData when I paste…
I’m still clueless about this. Copy and paste screenshots(like in Firefox’s built-in screenshot tool) works on a simple div contenteditable like here https://jsfiddle.net/2sf7benL/1/ but not in Prosemirror.