diff --git a/chrome/content/zotero/xpcom/editorInstance.js b/chrome/content/zotero/xpcom/editorInstance.js index 7c7483e85e..9b4b4a5826 100644 --- a/chrome/content/zotero/xpcom/editorInstance.js +++ b/chrome/content/zotero/xpcom/editorInstance.js @@ -661,7 +661,9 @@ class EditorInstance { } case 'openContextMenu': { let { x, y, pos, itemGroups } = message; - this._openPopup(x, y, pos, itemGroups); + // If `contenteditable` area wasn't focused before, the spell checker + // might not be fully initialized on right-click + setTimeout(() => this._openPopup(x, y, pos, itemGroups), 50); return; } case 'return': {