Fix: System-wide type hardening and V3 API alignment

This commit is contained in:
Scott Idem
2026-01-22 19:22:16 -05:00
parent 9de1d4b23e
commit 4976f2d897
11 changed files with 87 additions and 56 deletions

View File

@@ -31,7 +31,7 @@
content = 'test test test test',
new_content = $bindable(),
editorView = $bindable(), // Exposed for external control
theme_mode = 'light',
theme_mode = $bindable('light'),
extensions = [],
editable = true,
readonly = false,
@@ -105,12 +105,17 @@
...extensions // Add any custom extensions passed in props
].filter(Boolean);
if (!editor_element) {
console.error('Editor element not found.');
return;
}
editorView = new cm_modules.EditorView({
state: cm_modules.EditorState.create({
doc: content,
extensions: editor_extensions
}),
parent: editor_element
parent: editor_element as HTMLElement
});
}