Fix: Resolve type errors and cleanup window.location.reload calls
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user