ASPxHtmlEditor.RtfContentPastingProcessed Event

Raised when the copied/cut RTF content is processed on the server.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v19.2.dll

Declaration

public event EventHandler<RtfContentPastingProcessedEventArgs> RtfContentPastingProcessed
Public Event RtfContentPastingProcessed As EventHandler(Of RtfContentPastingProcessedEventArgs)

Event Data

The RtfContentPastingProcessed event handler receives an argument of the RtfContentPastingProcessedEventArgs type. The following properties provide information specific to this event.

Property Description
Html Gets or sets the HTML content obtained from the processed RTF content.

Remarks

To paste the RTF content from a clipboard with the original formatting, set the HtmlEditorHtmlEditingSettings.ProcessRtfContentPastingOnServer property to true. It enables converting the RTF content to HTML on the server and then paste it to the editor.

The RtfContentPastingProcessed event allows processing the HTML obtained from the copied/cut RTF before pasting to the ASPxHtmlEditor.


protected void ASPxHtmlEditor1_RtfContentPastingProcessed(object sender, RtfContentPastingProcessedEventArgs e) {
    e.Html = string.Format("<div class='rtf-container'>{0}</div>", e.Html);
}
See Also