Skip to content

PluginDialog

Property Type Description
actions? DialogAction[] Buttons under the body; without them, the dialog has a Close button.
title PluginText -
render(body, close): void | (() => void);

Fills the dialog’s body with plain DOM; may return a function to clean up when it closes. close ends the dialog from inside the body, as choosing an item in a list does, resolving dialog with that id. It is called again, after cleaning up, when the editor’s language changes.

Parameter Type
body HTMLElement
close (action) => void

void | (() => void)