Options
All
  • Public
  • Public/Protected
  • All
Menu

ContentScriptContext

When a content script is initialised, it receives a context object.

Index

Properties

contentScriptId

contentScriptId: string

The content script ID, which may be necessary to post messages

pluginId

pluginId: string

The plugin ID that registered this content script

postMessage

postMessage: PostMessageHandler

Can be used by CodeMirror content scripts to post a message to the plugin