Updated plugin integration with Joplin
This commit is contained in:
parent
0469b104f6
commit
1fb4228634
@ -1,3 +1,3 @@
|
||||
{
|
||||
"extraScripts": []
|
||||
"extraScripts": ["joplin-plugin-event-calendar.ts"]
|
||||
}
|
||||
11
src/index.ts
11
src/index.ts
@ -1,7 +1,12 @@
|
||||
import joplin from 'api';
|
||||
import joplin from "api";
|
||||
import { ContentScriptType } from "api/types";
|
||||
|
||||
joplin.plugins.register({
|
||||
onStart: async function() {
|
||||
console.info('Hello world. Test plugin started!');
|
||||
onStart: async function () {
|
||||
await joplin.contentScripts.register(
|
||||
ContentScriptType.MarkdownItPlugin,
|
||||
"joplin-plugin-event-calendar",
|
||||
"./joplin-plugin-event-calendar.js"
|
||||
);
|
||||
},
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user