Can extensions put rich text (with links) onto the clipboard
Hi all, Hi @emilianoheyns,
Is it possible for extensions to put rich text (with links) onto the clipboard?
For example, the 'generate bib' option (right-click menu) can put formatted text onto the clipboard, including links: e.g. for APA, the DOIs come out not just as text but as links.
Is it possible to do that via a right-click in an extension?
(@emilianoheyns, I'd like some of the right-clicks in the extension you built to produce rich text with links instead. https://github.com/edtechhub/zotero-edtechhub)
Is it possible for extensions to put rich text (with links) onto the clipboard?
For example, the 'generate bib' option (right-click menu) can put formatted text onto the clipboard, including links: e.g. for APA, the DOIs come out not just as text but as links.
Is it possible to do that via a right-click in an extension?
(@emilianoheyns, I'd like some of the right-clicks in the extension you built to produce rich text with links instead. https://github.com/edtechhub/zotero-edtechhub)
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
(Please don’t tag specific people for general questions. This all has to do with regular Zotero features, not any of Emiliano’s plugins.)
See https://github.com/zotero/zotero/blob/ea427892068078779c9c2fc499458b1745c3e512/chrome/content/zotero/fileInterface.js#L642 for an example.
(But please post coding questions to zotero-dev, not here.)
copyLinkToClipboardfunction there. (I've occasionally used this with the JavaScript API for code related to Zutilo issue #105.)