Changes for note insertion in non-GoogleDocs

This commit is contained in:
Adomas Venčkauskas 2020-10-12 17:01:24 +03:00 committed by Dan Stillman
parent 8709ddd657
commit 51db52a5ea
2 changed files with 8 additions and 11 deletions

View file

@ -110,10 +110,12 @@ describe("Zotero.Integration", function () {
* Converts placeholders (which are text with links to https://www.zotero.org/?[placeholderID])
* to fields and sets their field codes to strings in `codes` in the reverse order of their appearance
* @param {String[]} codes
* @param {String[]} placeholderIDs - the order of placeholders to be replaced
* @param {Number} noteType - controls whether citations should be in-text or in footnotes/endnotes
* @param {Number} fieldType
* @return {Field[]}
*/
convertPlaceholdersToFields: function (codes, noteType) {
convertPlaceholdersToFields: function (codes, placeholderIDs, noteType, fieldType) {
return codes.map(code => {
let field = new DocumentPluginDummy.Field(this);
field.code = code;