When the insert reference link added by Gadget-DuplicateReferences.js is clicked on a statement that is in edit mode, it fails with an error as shown in the screenshot below.
Description
Description
Event Timeline
Comment Actions
I propose the following patch to Gadget-DuplicateReferences.js to handle statements in edit mode differently. If the statement is in edit mode (i.e. the wb-edit class is present), the reference is added but not saved and the statement remains in edit mode.