diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index ce63ecf7ee..2b0f5c5e70 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -807,6 +807,15 @@ Zotero.Integration.Interface.prototype.setDocPrefs = Zotero.Promise.coroutine(fu return this._session.fields.updateDocument(FORCE_CITATIONS_RESET_TEXT, true, true); }); +/** + * Exports the citations in the document to a format importable in other word processors + * @return {Promise} + */ +Zotero.Integration.Interface.prototype.exportDocument = async function () { + await this._session.init(true, false); + await this._session.exportDocument(); +} + /** * An exceedingly simple nsISimpleEnumerator implementation */