fix: AI toolbar container recréé après bodyEl.innerHTML = ''
This commit is contained in:
parent
281636efa0
commit
e013ddc539
@ -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();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user