The DevExpress ASP.NET HTML Editor (ASPxHtmlEditor) allows end-users to format pasted HTML content using buttons that appear in the top right corner of the design area once content is pasted. By default, this functionality is disabled. Set the EnablePasteOptions property to true to enable it.
Available formatting options include:
- SourceFormatting: Formatting of pasted content is retained.
- MergeFormatting: MergeFormatting: Formatting of pasted content is mostly discarded. However, emphasis formatting, such as bold and italic text, is retained.
- PlainText: Formatting of pasted content and non-text elements (such as pictures or tables) is discarded.
You can also format pasted HTML content in code using the client-side BeforePaste event. In this demo, you can use the Formatting Settings check boxes to apply the corresponding formatting options to the pasted content in the BeforePaste event handler.