diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index a3a2d38ccf..d8284f0845 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -1149,6 +1149,14 @@ class EditorInstance { } }, + /** + * Cancel changes to the citation + */ + cancel: function () { + this.citation.citationItems = []; + return this.accept(); + }, + /** * Get a list of items used in the current document * @return {Promise} A promise resolved by the items