diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index 8d53212208..4bc40a5543 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -658,6 +658,15 @@ Zotero.Integration.Interface.prototype.addEditCitation = async function (docFiel * @return {Promise} */ Zotero.Integration.Interface.prototype.addNote = async function () { + if (!Zotero.isPDFBuild) { + let ps = Services.prompt; + let errorMessage = Zotero.getString('integration.error.noteEditorDisabled', ZOTERO_CONFIG.CLIENT_NAME); + let index = ps.confirm(null, Zotero.getString('integration.error.title'), errorMessage); + if (index == 1) { + Zotero.Utilities.Internal.openPreferences("zotero-prefpane-general"); + } + throw new Zotero.Exception.UserCancelled('Cannot add notes with note editor disabled'); + } await this._session.init(false, false); if ((!await this._doc.canInsertField(this._session.data.prefs['fieldType']))) { diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index c38b2a15e7..6cf0fed669 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -909,6 +909,7 @@ integration.error.rosettaWord.title = Outdated Word Configuration integration.error.rosettaWord1643 = %S can now be used with current versions of Word on Apple Silicon Macs.\n\nFor maximum performance, upgrade to the latest version of Word. integration.error.rosettaWord1644 = %S can now be used with Word running natively on Apple Silicon Macs.\n\nFor maximum performance, select Word in Finder, go to File → Get Info, disable “Open using Rosetta”, and restart Word. integration.error.viewTroubleshootingInfo = Would you like to view troubleshooting instructions? +integration.error.noteEditorDisabled = To enable note citing you must opt-in into the new %S PDF reader and note editor features. integration.replace = Replace this Zotero field? integration.missingItem.single = The highlighted citation no longer exists in your Zotero database. Do you want to select a substitute item?