Blazor Richtexteditor — Mail Merge
blazor
mail-merge
rich-text-editor
syncfusion
Simple demo to insert merge fields into a document and replace them with data.
What this sample shows
- Insert merge fields (e.g., customer name or address) via the toolbar or by typing
{for suggestions. - Use the "Finish & Merge" action to fill those fields with values from the sample data file.
Prerequisites
- .NET 8.0 SDK
- Visual Studio 2022+ or VS Code
- Syncfusion Blazor packages (a license may be required)
Setup & Running Steps
Installation
git clone https://github.com/SyncfusionExamples/blazor-richtexteditor-mail-merge.git
cd blazor-richtexteditor-mail-merge
Restore NuGet packages
dotnet restore
Run the application
dotnet run
How to use
- Open the running app.
- Insert merge fields from the "Insert Merge Field" menu or the mention suggestions (type
{). - Edit the document as needed.
- Click "Finish & Merge" to replace fields with values from
Data/InvoiceData.json.
Troubleshooting
- If the app won't start, run
dotnet restoreand ensure the project builds. - If merged values are missing, check that
Data/InvoiceData.jsonexists and contains valid data.
Support
This sample is provided for demonstration purposes. For issues, open an issue in the repository.
See also