Updated plugin integration with Joplin

This commit is contained in:
Franco Speziali 2022-03-17 15:54:24 +01:00
parent 0469b104f6
commit 1fb4228634
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,3 @@
{
"extraScripts": []
"extraScripts": ["joplin-plugin-event-calendar.ts"]
}

View File

@ -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!');
await joplin.contentScripts.register(
ContentScriptType.MarkdownItPlugin,
"joplin-plugin-event-calendar",
"./joplin-plugin-event-calendar.js"
);
},
});