The DevExpress ASP.NET MVC HTML Editor (HtmlEditorExtension) can process HTML content copied/pasted from another application (for example, Microsoft Word).
Use the following settings to format the pasted content:
- AllowSaveBinaryImageToServer - Specifies whether a pasted image is saved to the server and its generated URL used in HTML, or if it is processed as a base64 image.
- ProcessRtfContentPastingOnServer - Specifies whether to process the copied/cut RTF content on the server side. Using the RtfContentPastingProcessed event allows processing the HTML obtained from the copied/cut RTF before pasting it to the HtmlEditor extension.
- StyleAttributeFilterMode - Specifies the filtering mode for the Html Editor's style attributes defined by the StyleAttributeFilter property.
- StyleAttributeFilter - Specifies the list of allowed/unallowed style attributes depending on the filtering mode defined by the StyleAttributeFilterMode property.
In this demo, use the options on the right to see how these options affect the pasted content.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxHTMLEditorDemos |