From 8e54f1649b50e6e8eadfd1f1b2adaa178260a1f2 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Thu, 31 Mar 2022 12:14:11 +0700 Subject: [PATCH] Add annotation to note at cursor position Fixes #2487 --- chrome/content/zotero/xpcom/editorInstance.js | 2 +- note-editor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index cc92b6bded..bedee1af3a 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -179,7 +179,7 @@ class EditorInstance { await this.importImages(annotations); let { html } = Zotero.EditorInstanceUtilities.serializeAnnotations(annotations); if (html) { - this._postMessage({ action: 'insertHTML', pos: -1, html }); + this._postMessage({ action: 'insertHTML', pos: null, html }); } } diff --git a/note-editor b/note-editor index b985ba7d49..7565a117a7 160000 --- a/note-editor +++ b/note-editor @@ -1 +1 @@ -Subproject commit b985ba7d498a6e076c64f959853502db890f6d20 +Subproject commit 7565a117a702023dad773e832e7f805dd37f1df2