Fix: Resolve type errors and cleanup window.location.reload calls

This commit is contained in:
Scott Idem
2026-01-22 20:18:29 -05:00
parent c81ce50a00
commit a8e9c39ac6
5 changed files with 57 additions and 52 deletions

View File

@@ -64,12 +64,17 @@
].filter(Boolean);
// Create editor
if (!editor_container) {
console.error('Editor container not found.');
return;
}
editor_view = new cm.EditorView({
state: cm.EditorState.create({
doc: content ?? '',
extensions
}),
parent: editor_container
parent: editor_container as HTMLElement
});
}