mirror of
https://github.com/runofthemillgeek/swarnam-obsidian.git
synced 2024-11-16 15:30:16 +00:00
Add example for modifying CodeMirror.
This commit is contained in:
parent
2d6aebfe0a
commit
99f4035214
4
main.ts
4
main.ts
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user