aspnetcore-js-devexpress-dot-richedit-ae5a5c98.md
An event that allows you to save a document.
export class SavingEvent extends RichEditEvent<SavingEventArgs>
You can define the Saving event handler either at the server side, at the client side, or at runtime.
<script>
function savingDocument(s,e) {
e.handled = true;
console.log(e.base64);
console.log(e.fileName);
console.log(e.format);
}
</script>
@(Html.DevExpress().RichEdit("richEdit")
.OnSaving("savingDocument")
// ...
const options = DevExpress.RichEdit.createOptions();
options.events.saving = function(s,e) {
e.handled = true;
console.log(e.base64);
console.log(e.fileName);
console.log(e.format);
};
richEdit.events.saving.addHandler(function(s, e) {
e.handled = true;
console.log(e.base64);
console.log(e.fileName);
console.log(e.format);
});
The event handler receives an argument of the SavingEventArgs type. The argument’s properties provide information specific to this event.
See Save a Document for more information.
Event<TSource, TEventArgs> RichEditEvent<TEventArgs> SavingEvent
See Also