Event handler called before the dialogs are created.
| C# |
public event HtmlEditor..::.CreateDialogInfoEventHandler CreateDialogInfo
This event allows the developer to modify the dialog information
before the dialog web controls are created.
The HtmlEditor..::.CreateDialogInfoEventArgs object passed to
the event handler includes a public method to insert a custom dialog.
The HtmlEditor..::.CreateDialogInfoEventArgs object passed also includes a public Dialogs property, enabling more complex modification of dialog information.
Event handler:
CopyC#CreateToolbarInfo code to add a custom button to
display the custom dialog:
CopyC#
protected void Editor_CreateDialogInfo(object sender, HtmlEditor.CreateDialogInfoEventArgs e) { /// Insert a custom dialog e.InsertCustomDialog("MyDialog", "~/MyDialog.aspx", "My Dialog", 250, 400); }
protected void Editor_CreateToolbarInfo(object sender, HtmlEditor.CreateToolbarInfoEventArgs e) { // Insert a custom dialog button e.InsertDialogButton("MyDialogButton", "~/Images/MyDialogButton.gif", "This is my dialog button", "MyDialog", "Link", HtmlEditor.CreateToolbarInfoEventArgs.InsertType.Before); }