Change Theme Settings
Change Theme Settings
Themes
 
Metropolis
Moderno
iOS
Material
Material Compact
Office 365
Mulberry
Show All Themes
v
...v

Paste Formatting

v
Copy a part of editor content and paste it with formatting specified by the PasteMode combo box. Use the buttons that appear in the top right corner of the design area to change the paste formatting mode for the recently pasted content.

  • 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

The DevExpress ASP.NET HTML Editor (ASPxHtmlEditor) can automatically format pasted HTML content based on its PasteMode property - which can be set using one of the following values:

  • SourceFormatting: Formatting of pasted content is retained.
  • 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.

End-users can change formatting of pasted HTML content using the 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.

You can also format pasted HTML content in code using the client-side BeforePaste event. To explore this functionality, review the Manual Paste Formatting demo.