Add example for modifying CodeMirror.

This commit is contained in:
lishid 2020-10-29 17:36:03 -04:00
parent 2d6aebfe0a
commit 99f4035214

View file

@ -33,6 +33,10 @@ export default class MyPlugin extends Plugin {
}); });
this.addSettingTab(new SampleSettingTab(this.app, this)); this.addSettingTab(new SampleSettingTab(this.app, this));
this.registerEvent(this.app.on('codemirror', (cm: CodeMirror.Editor) => {
// Modify CodeMirror here...
}));
} }
onunload() { onunload() {