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

Placeholders (Mail Merge)

Preview Results


 
Nancy: (206) 555-9857
Andrew: (206) 555-9482
Janet: (206) 555-3412
Margaret: (206) 555-8122
Steven: (71) 555-4848
Michael: (71) 555-7773
Robert: (71) 555-5598
Laura: (206) 555-1189
Anne: (71) 555-4444
  • 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
    v
  • Fore Color
    v
  • Insert Table
    v
  • 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).