diff --git a/frontend/js/utils.js b/frontend/js/utils.js index afdbc8c..3b57f5e 100644 --- a/frontend/js/utils.js +++ b/frontend/js/utils.js @@ -290,6 +290,11 @@ async function openEditor(vaultName, filePath) { } state.fallbackEditorEl = null; + // Re-create AI toolbar container (was cleared by innerHTML above) + const aiContainer = document.createElement('div'); + aiContainer.id = 'ai-toolbar-container'; + bodyEl.appendChild(aiContainer); + try { await waitForCodeMirror();