Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
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)
  • Keep Source Formatting
  • Merge Formatting
  • Keep Plain Text
Copy a part of the editor content and paste it with the specified formatting.
Trace BeforePaste Event
Clear
Formatting Settings

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.

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