Skip to content

PluginPanel

Property Type Description
icon? string -
id string Unique within the plugin.
title PluginText -
render(body): void | (() => void);

Fills the panel with plain DOM; may return a function to clean up when it closes. It is called again, after cleaning up, when the editor’s language changes. To show new content meanwhile, change the body’s DOM.

Parameter Type
body HTMLElement

void | (() => void)