mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-18 09:35:20 +02:00
16 lines
417 B
Markdown
16 lines
417 B
Markdown
|
```typescript
|
||
|
// Import the Joplin API
|
||
|
import joplin from 'api';
|
||
|
|
||
|
// Register the plugin
|
||
|
joplin.plugins.register({
|
||
|
|
||
|
// Run initialisation code in the onStart event handler
|
||
|
// Note that due to the plugin multi-process architecture, you should
|
||
|
// always assume that all function calls and event handlers are async.
|
||
|
onStart: async function() {
|
||
|
console.info('TOC plugin started!');
|
||
|
},
|
||
|
|
||
|
});
|
||
|
```
|