mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
closes #432, Add hidden pref to enable clipboard export on Mac. The pref is extensions.zotero.enableMacClipboard
closes #312, Optional subdomains should be optional in scraper regular expressions.
This commit is contained in:
parent
c6d4cdd57b
commit
0bdbfb12ee
3 changed files with 8 additions and 2 deletions
|
|
@ -65,7 +65,10 @@ var Zotero_File_Interface_Bibliography = new function() {
|
|||
styleMenu.selectedIndex = 0;
|
||||
}
|
||||
|
||||
if(Zotero.isMac && document.getElementById("copy-to-clipboard")) {
|
||||
// disable clipboard on the Mac, because it can't support formatted
|
||||
// output
|
||||
if(Zotero.isMac && document.getElementById("copy-to-clipboard") &&
|
||||
!Zotero.Prefs.get("enableMacClipboard")) {
|
||||
document.getElementById("copy-to-clipboard").hidden = "true";
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -527,7 +527,9 @@ Zotero.CSL.prototype.createBibliography = function(items, format) {
|
|||
index++;
|
||||
output += index+". ";
|
||||
}
|
||||
output += string+"\r\n\r\n";
|
||||
// attach \n on mac (since both \r and \n count as newlines for
|
||||
// clipboard purposes)
|
||||
output += string+(Zotero.isMac ? "\n\n" : "\r\n\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,4 +12,5 @@ pref("extensions.zotero.parseEndNoteMIMETypes",true);
|
|||
pref("extensions.zotero.automaticSnapshots",true);
|
||||
pref("extensions.zotero.downloadAssociatedFiles",false);
|
||||
pref("extensions.zotero.reportTranslationFailure",true);
|
||||
pref("extensions.zotero.enableMacClipboard",false);
|
||||
pref("extensions.zotero.lastCreatorFieldMode",0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue