mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 07:38:53 +02:00
15 lines
414 B
TypeScript
15 lines
414 B
TypeScript
import { defaultKeymap } from "@codemirror/commands";
|
|
import { EditorView, keymap, lineNumbers, type EditorViewConfig } from "@codemirror/view";
|
|
|
|
export default class CodeMirror extends EditorView {
|
|
constructor(config: EditorViewConfig) {
|
|
super({
|
|
...config,
|
|
extensions: [
|
|
keymap.of(defaultKeymap),
|
|
lineNumbers()
|
|
]
|
|
});
|
|
}
|
|
}
|