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)
(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.)
copyLinkToClipboard
function there. (I've occasionally used this with the JavaScript API for code related to Zutilo issue #105.)