From 1b12b66e489d2a04965eb5054e0c8a4252117b86 Mon Sep 17 00:00:00 2001 From: Bogdan Abaev Date: Fri, 2 Feb 2024 15:02:12 -0500 Subject: [PATCH] fx115: classic citation dialog fixes - have panes for item selection occupy all available space - use Zotero ES module to fix simple editor search in classic citation dialog seems broken --- chrome/content/zotero/integration/addCitationDialog.xhtml | 4 ++-- chrome/content/zotero/integration/simpleEditor.js | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/integration/addCitationDialog.xhtml b/chrome/content/zotero/integration/addCitationDialog.xhtml index e8c440938a..a1e41995a2 100644 --- a/chrome/content/zotero/integration/addCitationDialog.xhtml +++ b/chrome/content/zotero/integration/addCitationDialog.xhtml @@ -70,11 +70,11 @@ - + - + diff --git a/chrome/content/zotero/integration/simpleEditor.js b/chrome/content/zotero/integration/simpleEditor.js index da2f3746b6..e628deec5f 100644 --- a/chrome/content/zotero/integration/simpleEditor.js +++ b/chrome/content/zotero/integration/simpleEditor.js @@ -48,9 +48,7 @@ // Simple WYSIWYG editor using contenteditable (function() { -var Zotero = Components.classes['@zotero.org/Zotero;1'] - .getService(Components.interfaces.nsISupports) - .wrappedJSObject; +var { Zotero } = ChromeUtils.importESModule("chrome://zotero/content/zotero.mjs"); const defaultParagraphSeparatorString = 'defaultParagraphSeparator' const formatBlock = 'formatBlock'