aspnet-9141-components-html-editor-concepts-dialogs-custom-dialogs.md
In addition to built-in dialogs available in ASPxHtmlEditor, you can add custom dialogs at design time and runtime.
To add custom dialogs to an editor, use its ASPxHtmlEditor.CustomDialogs collection. A custom dialog is an HtmlEditorCustomDialog class instance that has the following settings:
You can associate a custom dialog with a toolbar item, which when clicked, invokes the dialog. To accomplish this, add a ToolbarCustomDialogButton toolbar item to ASPxHtmlEditor and assign the dialog’s name to the toolbar item’s ToolbarCustomDialogButton.Name property.
On the client side, ASPxHtmlEditor includes the following events to respond to user interactions with custom dialogs and dialog button clicks.
| Event | Description |
|---|---|
| ASPxClientHtmlEditor.CustomDialogOpened | Fires after the custom dialog is opened. |
| ASPxClientHtmlEditor.CustomDialogClosing | Fires before the custom dialog is closed (a click on a dialog button or the header’s close button initiates the close action). |
| ASPxClientHtmlEditor.CustomDialogClosed | Fires after the custom dialog is closed. |