fix: workspace window bug with Zotero 7
This commit is contained in:
parent
6fd748352c
commit
fba0248eba
|
|
@ -37,6 +37,24 @@
|
|||
"chrome://global/content/customElements.js",
|
||||
this
|
||||
);
|
||||
if (!customElements.get("note-editor")) {
|
||||
Services.scriptloader.loadSubScript(
|
||||
"chrome://zotero/content/elements/shadowAutocompleteInput.js",
|
||||
this
|
||||
);
|
||||
Services.scriptloader.loadSubScript(
|
||||
"chrome://zotero/content/elements/noteEditor.js",
|
||||
this
|
||||
);
|
||||
Services.scriptloader.loadSubScript(
|
||||
"chrome://zotero/content/elements/relatedBox.js",
|
||||
this
|
||||
);
|
||||
Services.scriptloader.loadSubScript(
|
||||
"chrome://zotero/content/elements/tagsBox.js",
|
||||
this
|
||||
);
|
||||
}
|
||||
}
|
||||
window.arguments[0]._initPromise.resolve();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -223,7 +223,9 @@ export function initWorkspace(container: XUL.Box | undefined) {
|
|||
);
|
||||
// Manually add custom editor items in Zotero 7
|
||||
if (ztoolkit.isZotero7()) {
|
||||
const customElements = ztoolkit.getGlobal("customElements");
|
||||
// @ts-ignore
|
||||
const customElements = container.ownerGlobal
|
||||
.customElements as CustomElementRegistry;
|
||||
const mainEditorContainer = container.querySelector(
|
||||
`#${makeId("editor-main-container")}`
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue