From aef4beee89bf25551caf35436cd67604aa17c667 Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Wed, 28 Jan 2026 10:49:55 +0100 Subject: [PATCH] Fix note editor iframe docShell undefined error Regression after 37ce3c0 --- chrome/content/zotero/elements/noteEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/noteEditor.js b/chrome/content/zotero/elements/noteEditor.js index 46c59a2b1a..bafe54dffc 100644 --- a/chrome/content/zotero/elements/noteEditor.js +++ b/chrome/content/zotero/elements/noteEditor.js @@ -89,10 +89,10 @@ 'zotero/item': event.dataTransfer.getData('zotero/item') }, this._iframe.contentWindow); }, true); + this._iframe.docShell.windowDraggingAllowed = true; this._initialized = true; }); this.append(content); - this._iframe.docShell.windowDraggingAllowed = true; this._notifierID = Zotero.Notifier.registerObserver(this, ['item', 'file'], 'noteEditor'); this.notitle = !!this.getAttribute('notitle');