• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

Example of Mail Merge in ASP.NET Core Rich Text Editor Control

This sample demonstrates how to implement a mail merge in the Rich Text Editor sample by inserting placeholders into the editor using custom toolbar item, which are then replaced with actual data to create personalized content.

DEMO
SOURCE

The mail merge in the Rich Text Editor sample enables users to insert placeholders for personalized content. These placeholders are replaced with actual data when generating the final content, making it easy to create customized letters, invoices, and more.

The following configurations are used in this sample:

  • The Button and DropDownButton are configured in the custom toolbar of the Rich Text Editor.
  • The Button click action performs the merge of the editor placeholder content.
  • The DropDownButton provides a list of available fields, such as "First Name" or "Email Address." A selected field from this dropdown is inserted into the editor as a placeholder.
  • The Mention allows insertion of merge fields by pressing the mention character, such as {, in the editor and selecting an item. These chips make it easy to see and select fields directly within the content.
Transform your ASP.NET Core web apps today with Syncfusion® ASP.NET Core components
85+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab