Com.H.Web.UI.WordPasteEditor
1.0.0
dotnet add package Com.H.Web.UI.WordPasteEditor --version 1.0.0
NuGet\Install-Package Com.H.Web.UI.WordPasteEditor -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Com.H.Web.UI.WordPasteEditor" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Com.H.Web.UI.WordPasteEditor" Version="1.0.0" />
<PackageReference Include="Com.H.Web.UI.WordPasteEditor" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Com.H.Web.UI.WordPasteEditor --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Com.H.Web.UI.WordPasteEditor, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Com.H.Web.UI.WordPasteEditor@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Com.H.Web.UI.WordPasteEditor&version=1.0.0
#tool nuget:?package=Com.H.Web.UI.WordPasteEditor&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Com.H.Web.UI.WordPasteEditor
An ASP.NET Web Forms server control that provides a rich-text editor with automatic Microsoft Word paste cleanup.
This control wraps the word-paste-editor client-side library — a zero-dependency JavaScript editor that sanitizes Word HTML while preserving meaningful formatting.
Features
- Word paste cleanup — strips Office markup while keeping tables, colors, fonts, bold/italic, lists, images, and links.
- Server control — drop-in
<wpe:Editor>tag with ViewState,IPostBackDataHandler, andContentChangedevent. - UpdatePanel compatible — works inside async postback panels.
- Debounced sync — configurable debounce interval (default 300 ms).
- Zero client dependencies — all JS/CSS is embedded in the assembly.
- Read-only mode —
ReadOnly="true"for non-editable rendering.
Quick Start
Register the tag prefix:
<%@ Register TagPrefix="wpe"
Namespace="Com.H.Web.UI.WordPasteEditor"
Assembly="Com.H.Web.UI.WordPasteEditor" %>
Add the editor:
<wpe:Editor ID="MyEditor" runat="server"
Width="100%" Height="300px" />
Read/write content in code-behind:
string html = MyEditor.Content;
MyEditor.Content = "<p>Hello, world!</p>";
Properties
| Property | Type | Default | Description |
|---|---|---|---|
Content |
string |
"" |
HTML content of the editor. |
ReadOnly |
bool |
false |
Disables editing when true. |
DebounceInterval |
int |
300 |
Debounce interval in milliseconds. |
CssClass |
string |
"wpe-editor" |
CSS class on the editor div. |
Width |
string |
"" |
CSS width (e.g. "100%"). |
Height |
string |
"" |
CSS height (e.g. "300px"). |
Documentation
Full documentation and source code: GitHub
Upstream JS library: word-paste-editor
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8.1
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 79 | 3/14/2026 |