diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index 9781fdc8f6..39d381cfac 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -152,6 +152,7 @@ class EditorInstance { } async insertAnnotations(annotations) { + await this._ensureNoteCreated(); let html = await this._digestAnnotations(annotations); if (html) { this._postMessage({ action: 'insertHTML', pos: -1, html });