From e202924324a61a2c45af4b8bef4e361919bb684a Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Wed, 30 Oct 2024 14:36:50 +0000 Subject: [PATCH] Add File, Edit and Window menus to note editor window --- chrome/content/zotero/note.js | 4 + chrome/content/zotero/note.xhtml | 121 +++++++++++++++++++++++++++++-- 2 files changed, 118 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/note.js b/chrome/content/zotero/note.js index 1f207693aa..58986f899f 100644 --- a/chrome/content/zotero/note.js +++ b/chrome/content/zotero/note.js @@ -29,6 +29,10 @@ Components.utils.import("resource://gre/modules/Services.jsm"); let noteEditor; let notifierUnregisterID; +function showInLibrary() { + noteEditor._editorInstance._showInLibrary([noteEditor._editorInstance._item.id]); +} + async function onLoad() { if (window.arguments) { var io = window.arguments[0]; diff --git a/chrome/content/zotero/note.xhtml b/chrome/content/zotero/note.xhtml index dbd0edaa96..beee6ca318 100644 --- a/chrome/content/zotero/note.xhtml +++ b/chrome/content/zotero/note.xhtml @@ -5,7 +5,9 @@ %zoteroDTD; + %editMenuOverlayDTD; + %standaloneDTD; + %zoteroDTD; ]> + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" + xmlns:html="http://www.w3.org/1999/xhtml" +> + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +