diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index ce116f8389..497ae2c6d4 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -1394,7 +1394,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 520b5aa868..431d714a75 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -5038,7 +5038,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, @@ -5134,7 +5134,7 @@ var ZoteroPane = new function() catch (e) { Zotero.logError(e); } - annotations.push(...attachment.getAnnotations()); + annotations.push(...attachment.getAnnotations().filter(x => x.annotationType != 'ink')); } }