ASPxHtmlEditor.RtfContentPastingProcessed Event
Raised when the copied/cut RTF content is processed on the server.
Namespace: DevExpress.Web.ASPxHtmlEditor
Assembly: DevExpress.Web.ASPxHtmlEditor.v19.1.dll
Declaration
Event Data
The RtfContentPastingProcessed event's data class is RtfContentPastingProcessedEventArgs. 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);
}