In the window, or sandboxed
A plugin in the window runs in Bläck Studio's page. It can draw its own interface and use the editor directly.
A sandboxed plugin runs in a separate worker:
- No page: it can't reach the page, the editor or other plugins.
- No network access of its own: it has no
fetchand no way to load code. - Everything through Bläck Studio: it asks for what it needs through
this.app, and Bläck Studio answers according to the plugin's permissions. - The same methods: it has everything described above, except what draws an interface,
editor.active(),editor.anchor()andapp.speech. Its status bar items are text, and its menu entries useshowto say whether they're for a selection.
The plugin list shows when a plugin is sandboxed. If your plugin doesn't need to draw anything, make it sandboxed.