THEMES
THEME SETTINGS

HTML Editor - Client-Side API 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
Formatting Settings

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.

Version: v2016 vol 2.4
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.