Event handler called when the Save toolbar button is clicked.
| C# |
public event HtmlEditor..::.SaveEventHandler Save
When the toolbar Save button is clicked, the editor makes an
asynchronous postback with the saved text. Attaching an event handler
to this event allows the text to be saved to a persistent store.
Attach to the event declaratively in the HtmlEditor tag:
CopyC#
Handle the event:
CopyC#
OnSave = "Editor_Save"protected void Editor_Save(object sender, HtmlEditor.SaveEventArgs e) { DataStore.StoreHtml(e.Text); }