Copy-paste troubles in Google Docs - Zotero fields cannot be inserted here
Sometimes, when I copy and paste a section that contains a citation within a Google Document, it starts giving me the "Zotero fields cannot be inserted here" error, when I try to insert the next citation (normal citation, normal text). Reloading and restarting Zotero doesn't fix it.
I use Google Chrome and have only Zotero extension enabled (not even offline Google Docs, for worries it may mess with Zotero).
Workaround for this bug:
So far I have fortunately been able to always remember which was the last thing I did. When I delete that copy-pasted citation, it starts working normally again. So I just reinsert that last citation again and then continue my work.
I use Google Chrome and have only Zotero extension enabled (not even offline Google Docs, for worries it may mess with Zotero).
Workaround for this bug:
So far I have fortunately been able to always remember which was the last thing I did. When I delete that copy-pasted citation, it starts working normally again. So I just reinsert that last citation again and then continue my work.
Furthermore, I sometimes cannot change citations - they are still recognized as Zotero fields, but when I want to edit them, I receive the "Zotero fields cannot be inserted here" error. Not sure what the conditions are under which this happens.
Also, does that happen in every document or just a specific document?
@ZielonyGrzyb Do you have the Zotero Connector installed on the computer that you do copy-pasting? Copying and pasting between google docs will not retain citations if you do not have the connector. If you do, can you reliably reproduce this every time?
@adomasven I copy and pasted within a Google doc, not between different documents. But yes, I do have the Zotero Connector for Firefox installed.
Suddenly, though, I seem to be experiencing the problem described by @kjell.kuehne more frequently. Deleting the citation works (but is annoying); placing the cursor elsewhere doesn't. Usually, the problem appears after opening a Google doc, when I first try to edit an existing citation.
Within the same gdoc, when I cut-paste a text with a citation, I lost Zotero fields. If I copy-paste instead of cut-paste, the field is retained if I do not delete the originally copied text with Zotero field, but as soon as I delete the original text the field is lost also in the copied text.
Partial workaround: re-insert Zotero field all the time I move a text within a gdoc.
Workaround limitations: it demands extra attention and time (i.e. re-insert citations), and - especially in group work (as it is the case) - exposes to the high risk of loosing references (because citations can remain unnoticed in simple text as oppose to Zotero field). Moreover not all authors of the text have Zotero active, therefore they cannot re-introduce citations).
Versions:
Chrome - Version 80.0.3987.149 (Official Build) (64-bit) - Zotero Connector 5.0.61
Firefox - Version 74.0 (64-bit) - Zotero Connector 5.0.61
When you perform the test for cutting and pasting do you see the Zotero menu at the top of the page? If not, then something is wrong with the way the Zotero google docs plugin has initialized. Do you see it if you refresh the document? Does it appear if you disable other installed extensions and restart the browser?
1. Copy the original text and Zotero sources;
2. Reflresh Zotero within the gdoc;
3. Delete the original source and leave only the copied source;
Without step 2 above, after deleting the original text and refreshing the Zotero field is lost in the copied text and the reference disappear from the reference list.
Cut-paste does not work and (to respond to your questions): I see the zotero menu, I disabled all other chrome extensions.
I sent an email to support@zotero.org with a videocast where you can see my screen while I perform these tests.
If you open the Web Console (Ctrl-Shift-K), do you see any errors when you try to install? What do you see for the site certificate info for this site?
In any case, you should be able to right-click on the link, download the XPI to disk, and drag it to Firefox to install it.
I could perform the test and cut-paste works fine however copy-paste does not work.
I am sending a video again to support@zotero.org.
Thanks for the help in debugging this. We'll post here when the fix is out on the release version of the Connector for both Firefox and Chrome.
If you have your citations unlinked the best way to revert that is to restore a version of the document from the Google Docs revision history