Change Theme Settings
Change Theme Settings
Show All Themes

Placeholders (Mail Merge)

Preview Results

  • Undo (Ctrl+Z)
  • Redo (Ctrl+Y)
  • Bold (Ctrl+B)
  • Italic (Ctrl+I)
  • Underline
  • Strikethrough
  • Align Left (Ctrl+L)
  • Align Center (Ctrl+E)
  • Align Right (Ctrl+R)
  • Back Color
  • Fore Color
  • Insert Table
  • Insert Placeholder

The DevExpress ASP.NET MVC HTML Editor (HtmlEditor) allows end-users to add placeholders to editor content. The placeholders can then be replaced with the required values.

The collection of placeholders available for end-users is accessed by the Placeholders property. End-users can type a placeholder in the text or use the Insert Placeholder dialog, which can be invoked using the Insert Placeholder toolbar button (ToolbarInsertPlaceholderDialogButton). The Insert Placeholder dialog allows you to insert and change placeholders.

To replace placeholders with the required values, use the client-side ReplacePlaceholders or server-side ReplacePlaceholders method.

In this demo, placeholder values are gotten from a database. You can modify a document template and preview the results for different persons (database records).