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() {