From e013ddc5396290a387da560521c9b887f2c9d2f0 Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Sat, 30 May 2026 19:03:20 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20AI=20toolbar=20container=20recr=C3=A9?= =?UTF-8?q?=C3=A9=20apr=C3=A8s=20bodyEl.innerHTML=20=3D=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/js/utils.js | 5 +++++ 1 file changed, 5 insertions(+) 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();