Event handler called when the Save toolbar button is clicked or
when a configured SaveInterval triggers a timer-based
save and postback.
| 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.
This handler is also the target of any timer-based save and postback events triggered by the client-side editor as a result of setting the SaveInterval property.
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); }