fix: AI toolbar container recréé après bodyEl.innerHTML = ''
Some checks failed
CI / lint (push) Failing after 4s
CI / test (push) Has been skipped
CI / build (push) Has been skipped
CI / security (push) Successful in 9s

This commit is contained in:
Bruno Charest 2026-05-30 19:03:20 -04:00
parent 281636efa0
commit e013ddc539

View File

@ -290,6 +290,11 @@ async function openEditor(vaultName, filePath) {
} }
state.fallbackEditorEl = null; 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 { try {
await waitForCodeMirror(); await waitForCodeMirror();