Gets the plugin own data directory path. Use this to store any plugin-related data. Unlike installationDir, any data stored here will be persisted.
Gets the plugin installation directory. This can be used to access any asset that was packaged with the plugin. This directory should be considered read-only because any data you store here might be deleted or re-created at any time. To store new persistent data, use dataDir.
Registers a new plugin. This is the entry point when creating a plugin. You should pass a simple object with an onStart
method to it.
That onStart
method will be executed as soon as the plugin is loaded.
joplin.plugins.register({
onStart: async function() {
// Run your plugin code here
}
});
This class provides access to plugin-related features.