summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlishid <[email protected]>2020-10-29 17:36:03 -0400
committerlishid <[email protected]>2020-10-29 17:36:03 -0400
commit99f40352142f79017458630581ff4032a8dfd7a3 (patch)
tree2cc8b4cea28f8dece36c760512d2813c8e0b48e7
parent2d6aebfe0a4e7d6fd5953142c5edc662f709ae3d (diff)
downloadai-pulse-obsidian-plugin-99f40352142f79017458630581ff4032a8dfd7a3.tar.gz
ai-pulse-obsidian-plugin-99f40352142f79017458630581ff4032a8dfd7a3.zip
Add example for modifying CodeMirror.
-rw-r--r--main.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.ts b/main.ts
index d1c2a32..82b60e5 100644
--- a/main.ts
+++ b/main.ts
@@ -33,6 +33,10 @@ export default class MyPlugin extends Plugin {
});
this.addSettingTab(new SampleSettingTab(this.app, this));
+
+ this.registerEvent(this.app.on('codemirror', (cm: CodeMirror.Editor) => {
+ // Modify CodeMirror here...
+ }));
}
onunload() {