Documentation / jpl-vite / api / ContentScriptContext
Interface: ContentScriptContext
Defined in: joplin-plugin-api/dist/types.d.ts:385
When a content script is initialised, it receives a context
object.
Properties
contentScriptId
contentScriptId:
string
Defined in: joplin-plugin-api/dist/types.d.ts:393
The content script ID, which may be necessary to post messages
pluginId
pluginId:
string
Defined in: joplin-plugin-api/dist/types.d.ts:389
The plugin ID that registered this content script
postMessage
postMessage:
PostMessageHandler
Defined in: joplin-plugin-api/dist/types.d.ts:397
Can be used by CodeMirror content scripts to post a message to the plugin