Com.H.Web.UI.WordPasteEditor 1.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Com.H.Web.UI.WordPasteEditor --version 1.1.0
                    
NuGet\Install-Package Com.H.Web.UI.WordPasteEditor -Version 1.1.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.1.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.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Com.H.Web.UI.WordPasteEditor" />
                    
Project file
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.1.0
                    
#r "nuget: Com.H.Web.UI.WordPasteEditor, 1.1.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.1.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.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Com.H.Web.UI.WordPasteEditor&version=1.1.0
                    
Install as a Cake Tool

Com.H.Web.UI.WordPasteEditor

NuGet .NET Framework Zero Client Dependencies License

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. Word's automatic numbering (including serial-number columns in tables) is kept as literal numbers.
  • Optional formatting toolbar — Toolbar="true" adds bold, italic, underline, colours, alignment, links, and clear formatting.
  • Server control — drop-in <wpe:Editor> tag with ViewState, IPostBackDataHandler, and ContentChanged event.
  • 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" Toolbar="true" />

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.
Toolbar bool false Formatting toolbar above the editor (never when ReadOnly).
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 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.1.1 107 11/4/2026
1.1.0 98 11/4/2026
1.0.0 186 3/14/2026

1.1.0: Optional formatting toolbar (Toolbar="true"): bold, italic, underline, text and highlight colour, alignment, links, clear formatting. Word auto-numbering now pastes as the literal numbers Word showed, including serial-number columns in tables (these used to paste as bullets). Public EditorClientID property. Fixed: an edit made just before an UpdatePanel async postback could be lost; Chrome added font-family: inherit spans when aligning text. Client library word-paste-editor 1.1.0.