diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index e2f7dcffce..92662ef2b8 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -1398,7 +1398,8 @@ class EditorInstanceUtilities { if (!annotation.text && !annotation.comment - && !annotation.imageAttachmentKey) { + && !annotation.imageAttachmentKey + || annotation.type === 'ink') { continue; } diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index c25df396da..846c9e64bf 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -5049,7 +5049,7 @@ var ZoteroPane = new function() catch (e) { Zotero.logError(e); } - annotations.push(...attachment.getAnnotations()); + annotations.push(...attachment.getAnnotations().filter(x => x.annotationType != 'ink')); } var note = await Zotero.EditorInstance.createNoteFromAnnotations( annotations, @@ -5145,7 +5145,7 @@ var ZoteroPane = new function() catch (e) { Zotero.logError(e); } - annotations.push(...attachment.getAnnotations()); + annotations.push(...attachment.getAnnotations().filter(x => x.annotationType != 'ink')); } }