windingwind / zotero-plugin-toolkit

Toolkit for Zotero Plugin Developers.
https://www.npmjs.com/package/zotero-plugin-toolkit
MIT License
104 stars 13 forks source link

Add paste functionality to ClipboardHelper #59

Closed lesstech closed 2 weeks ago

lesstech commented 3 weeks ago

It would be great, if the clipboard helper could also support paste functionality!

windingwind commented 3 weeks ago

You mean read the clipboard?

lesstech commented 3 weeks ago

Yes, I mean read the clipboard. Sorry, english isn't my first language.

lesstech commented 3 weeks ago

If you don't want to add this functionality then we can close this issue again, I just thought, that I need this functionality for writing an action-script using your Zotero plugin, but now I found out, that I can import global variables, thus I can just use the clipboard API directly. But thank you very much for your great plugins! 😊

windingwind commented 2 weeks ago

Zotero.Utilities.Internal.getClipboard("text/plain")