diff options
| author | lishid <[email protected]> | 2020-10-29 17:36:03 -0400 |
|---|---|---|
| committer | lishid <[email protected]> | 2020-10-29 17:36:03 -0400 |
| commit | 99f40352142f79017458630581ff4032a8dfd7a3 (patch) | |
| tree | 2cc8b4cea28f8dece36c760512d2813c8e0b48e7 | |
| parent | 2d6aebfe0a4e7d6fd5953142c5edc662f709ae3d (diff) | |
| download | ai-pulse-obsidian-plugin-99f40352142f79017458630581ff4032a8dfd7a3.tar.gz ai-pulse-obsidian-plugin-99f40352142f79017458630581ff4032a8dfd7a3.zip | |
Add example for modifying CodeMirror.
| -rw-r--r-- | main.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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() {
|
