Add example for modifying CodeMirror.
This commit is contained in:
parent
2d6aebfe0a
commit
99f4035214
1 changed files with 4 additions and 0 deletions
4
main.ts
4
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() {
|
||||
|
|
Loading…
Reference in a new issue