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'