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"]
|
||||||
}
|
}
|
||||||
@ -1,7 +1,12 @@
|
|||||||
import joplin from 'api';
|
import joplin from "api";
|
||||||
|
import { ContentScriptType } from "api/types";
|
||||||
|
|
||||||
joplin.plugins.register({
|
joplin.plugins.register({
|
||||||
onStart: async function () {
|
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"
|
||||||
|
);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user