Filter ink annotations before creating note from annotations
This commit is contained in:
parent
c2df338430
commit
aa7f5289a3
2 changed files with 2 additions and 2 deletions
|
@ -415,7 +415,7 @@ var ZoteroContextPane = new function () {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var note = await Zotero.EditorInstance.createNoteFromAnnotations(
|
var note = await Zotero.EditorInstance.createNoteFromAnnotations(
|
||||||
attachment.getAnnotations(), child && attachment.parentID
|
attachment.getAnnotations().filter(x => x.annotationType != 'ink'), child && attachment.parentID
|
||||||
);
|
);
|
||||||
|
|
||||||
_updateAddToNote();
|
_updateAddToNote();
|
||||||
|
|
|
@ -4404,7 +4404,7 @@ var ZoteroPane = new function()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var note = await Zotero.EditorInstance.createNoteFromAnnotations(
|
var note = await Zotero.EditorInstance.createNoteFromAnnotations(
|
||||||
attachment.getAnnotations(), attachment.parentID
|
attachment.getAnnotations().filter(x => x.annotationType != 'ink'), attachment.parentID
|
||||||
);
|
);
|
||||||
await this.selectItem(note.id);
|
await this.selectItem(note.id);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue