Add an 'exportDocument' integration command endpoint
This commit is contained in:
parent
b99ee1f030
commit
fedd6f8241
1 changed files with 9 additions and 0 deletions
|
@ -807,6 +807,15 @@ Zotero.Integration.Interface.prototype.setDocPrefs = Zotero.Promise.coroutine(fu
|
||||||
return this._session.fields.updateDocument(FORCE_CITATIONS_RESET_TEXT, true, true);
|
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
|
* An exceedingly simple nsISimpleEnumerator implementation
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue