Blazor Rich Text Editor — Paste Clean Up
A Blazor sample that demonstrates how to enable and configure Paste Clean-up behavior in the Syncfusion Rich Text Editor component. This repository shows a focused example of sanitizing and normalizing content that is pasted from external sources (for example Microsoft Word or other editors) into the rich text editor.
Online example
See the live demo for Paste Clean-up behavior:
https://blazor.syncfusion.com/demos/rich-text-editor/paste-cleanup?theme=fluent
Overview
This sample illustrates how to configure the Rich Text Editor to remove unwanted formatting, preserve basic structure, and handle pasted HTML/RTF content consistently. It is intended as a quick-start reference for applications that need predictable paste behavior when users bring content from other editors.
Prerequisites
- Visual Studio 2022 (or later)
- A valid Syncfusion Blazor license key when running a licensed build
Prerequisites
- Visual Studio 2022 (or later) installed on your machine.
- A valid Syncfusion Blazor license key for licensed deployments.
Setup & Running Steps
Installation
git clone https://github.com/SyncfusionExamples/blazor-rte-mail-merge
cd blazor-rte-mail-merge
Restore NuGet packages
dotnet restore
Run the application
dotnet run
Troubleshooting
- Ensure NuGet packages are restored and the project builds before running.
- If export fails, check browser console and server logs for errors and confirm any required licenses are configured.
Support
This sample is provided for demonstration purposes. For issues, open an issue in the repository.
See also