Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix copy/paste of non-http links in Notes #452

merged 1 commit into from Feb 5, 2014


Copy link

jlegewie commented Feb 5, 2014

copy+paste within notes removes non-http links. So the html code <a href="zotero://select/items/0_DQHBAGPE">link</a> becomes <a>link</a> when I copy and paste it within notes. http links, however, work without a problem. It's probably some obscure tinymce bug. It works in Chrome but it doesn't in firefox. This pull request fixes the bug with a small addition in the paste plugin. I had to replace the minified version with the full one and then changed the part which is earmarked with an // Added by Zotero.

dstillman added a commit that referenced this pull request Feb 5, 2014
fix copy/paste of non-http links in Notes
@dstillman dstillman merged commit 8b6cedd into zotero:4.0 Feb 5, 2014
Copy link

dstillman commented Feb 5, 2014


dstillman added a commit that referenced this pull request Apr 10, 2015
Copying zotero:// and other non-HTTP links from a note itself was fixed
in #452, but copying such links from other sources still stripped the
hrefs. This removes the patch in #452 and just gets the HTML directly
from the clipboard. I'm not sure why TinyMCE doesn't try to do this by
default (it only tries for plaintext), so maybe there's a problem with
this approach, but it seems to work for me (strips bad HTML, etc.).

Fixes #697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.