Add an 'exportDocument' integration command endpoint

This commit is contained in:
Adomas Venčkauskas 2019-05-28 13:51:08 +03:00
parent b99ee1f030
commit fedd6f8241

View file

@ -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
*/