Ln {{ line }}
Col {{ column }}
diff --git a/src/editor/editor.js b/src/editor/editor.js
index 28d9147..ed6c1c0 100644
--- a/src/editor/editor.js
+++ b/src/editor/editor.js
@@ -13,7 +13,7 @@ import { languageDetection } from "./language-detection/autodetect.js"
export class HeynoteEditor {
- constructor({element, content, focus=true}) {
+ constructor({element, content, focus=true, theme="light"}) {
this.state = EditorState.create({
doc: content || "",
extensions: [
@@ -23,8 +23,7 @@ export class HeynoteEditor {
customSetup,
- //heynoteDark,
- heynoteLight,
+ theme === "dark" ? heynoteDark : heynoteLight,
heynoteBase,
indentUnit.of(" "),
EditorView.scrollMargins.of(f => {