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