Show theme settings Shopping cart Download trialFree Trial
DevExpress Universal ships with DevExtreme—the framework you'll need to deliver beautiful, easy-to-use HTML5/ JavaScript applications for smartphones, tablets and desktop browsers. With nine high-impact themes replicating today's most popular mobile OS interfaces, DevExtreme apps automatically apply the appropriate theme to your solution so your "write once, use everywhere" apps look great, regardless of the end-user's device or platform choice.
Change Theme Settings
Change Theme Settings
Themes
 
Material
Material Compact
Office 365
Show All Themes
v
...v

Manual Paste Formatting

  • Undo (Ctrl+Z)
  • Redo (Ctrl+Y)
  • v
  • v
  • Bold (Ctrl+B)
  • Italic (Ctrl+I)
  • Underline
  • Strikethrough
  • Align Left (Ctrl+L)
  • Align Center (Ctrl+E)
  • Align Right (Ctrl+R)
  • Insert Image (Ctrl+G)
Copy a part of the editor content and paste it with the specified formatting.
Trace BeforePaste Event
Clear
Formatting Settings
Did this demo address your needs?
If you’d like us to extend this demo further, please describe your needs below.
Thank you in advance for your cooperation.
SEND FEEDBACK


The DevExpress ASP.NET MVC HTML Editor extension allows end-users to format the pasted HTML content using buttons that appear in the top right corner of the design area once the content is pasted. By default, this functionality is disabled. Set the SettingsHtmlEditing.EnablePasteOptions property to true to enable it. The available formatting options are listed below.

  • SourceFormatting - The formatting of the pasted content is retained.
  • MergeFormatting - The formatting of the pasted content is mostly discarded. However, emphasis formatting, such as bold and italic text, is retained when it is applied to only a portion of the selection.
  • PlainText - The formatting of the pasted content and non-text elements, such as pictures or tables, is discarded.

Additionally, you can format the 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.

Collapse/Expand
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).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxHTMLEditorDemos