We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eaa0644 commit 2b89529Copy full SHA for 2b89529
src/modules/editor/menu.ts
@@ -12,6 +12,11 @@ import { getEditorCore } from "../../utils/editor";
12
export function initEditorMenu(editor: Zotero.EditorInstance) {
13
const makeId = (key: string) =>
14
`${config.addonRef}-editor-menu-${editor.instanceID}-${key}`;
15
+
16
+ if (editor._popup.dataset.bnMenuInitialized === "true") {
17
+ return;
18
+ }
19
+ editor._popup.dataset.bnMenuInitialized = "true";
20
(editor._popup as XULMenuElement).addEventListener(
21
"popupshowing",
22
async (ev) => {
0 commit comments