BlazorRTE 1.2.5

dotnet add package BlazorRTE --version 1.2.5
                    
NuGet\Install-Package BlazorRTE -Version 1.2.5
                    
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="BlazorRTE" Version="1.2.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorRTE" Version="1.2.5" />
                    
Directory.Packages.props
<PackageReference Include="BlazorRTE" />
                    
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 BlazorRTE --version 1.2.5
                    
#r "nuget: BlazorRTE, 1.2.5"
                    
#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 BlazorRTE@1.2.5
                    
#: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=BlazorRTE&version=1.2.5
                    
Install as a Cake Addin
#tool nuget:?package=BlazorRTE&version=1.2.5
                    
Install as a Cake Tool

BlazorRTE - Rich Text Editor for Blazor

Native Blazor • Keyboard Accessible • Zero External Dependencies

License .NET

🌐 Browser Support

Browser Status
Chrome ✅ Tested
Edge ✅ Tested
Firefox ✅ Tested
Safari ⚠️ Not tested

🚀 Quick Start

⚠️ BlazorRTE requires interactive rendering (InteractiveServer, InteractiveWebAssembly, or InteractiveAuto).

dotnet add package BlazorRTE

Basic Usage

@page "/editor" 

@using BlazorRTE.Components
@rendermode InteractiveServer 

@* Required for JS interop! *@
<RichTextEditor @bind-Value="@content" Placeholder="Start typing..." />

@code { private string content = ""; }

🎯 Features

  • Text Formatting — Bold, Italic, Underline, Strikethrough, Subscript, Superscript, Headings (H1–H3), Lists, Alignment, Indent/Outdent, Text & Highlight Colors, Font Family, Font Size
  • Rich Functionality — Links, Horizontal Rules, Undo/Redo, Character & Word Count, Max length enforcement, Dark mode
  • Emoji — 1,100+ emojis via BlazorEmo, inline autocomplete (:smile), toolbar picker (Ctrl+Shift+E)
  • Chat ModeBypassEnterKey="true" makes Enter send, Shift+Enter inserts newline
  • Accessibility — Full keyboard navigation, ARIA labels on all controls, pending format support
  • Security — Whitelist-based HTML sanitization, script/iframe/event handler removal, javascript: URL blocking

📖 Parameters

Parameter Type Default Description
Value string Two-way bound editor content
Placeholder string "Type your message..." Placeholder text
ShowToolbar bool true Show/hide toolbar
MaxLength int 5000 Max character limit
ShowCharacterCount bool true Show char/word count
MinHeight / MaxHeight string "200px" / "600px" Editor height bounds
DarkMode bool false Dark theme
EnableEmojiShortcodes bool true Inline emoji autocomplete
BypassEnterKey bool false Enter sends instead of newline
AriaLabel string "Rich text editor" Accessibility label

📜 License

GPL v3 — Free for open-source projects. Your application must also be open-source under GPL v3.
See LICENSE.txt for full terms.

🙏 Acknowledgments

  • BlazorEmo — Emoji picker component
  • Toolbar icons derived from open-source icon sets (MIT/Apache 2.0 licensed)
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on BlazorRTE:

Package Downloads
BlazorChat

Real-time chat UI component for Blazor applications. Drop-in embeddable chat widget with SignalR, emoji reactions, typing indicators, and message editing. GPLv3 open source with in-memory storage. For production persistence, add BlazorChat.Server.SqlServer.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.5 26 3/15/2026
1.2.4 32 3/13/2026
1.2.3 48 3/11/2026
1.2.2 74 3/10/2026
1.2.1 161 2/22/2026
1.2.0 57 2/21/2026
1.1.4 63 2/16/2026

v1.2.5 (2026-03-14)
- Fixed: Dark mode text visibility in contenteditable area

v1.2.4 (2026-03-12)
- Added: .NET 8 and .NET 9 multi-target support
- Added: Embedded debug symbols and SourceLink for consumer debugging
- Now supports .NET 8.0, 9.0, and 10.0

v1.2.3 Bug Fix (2026-03-10)
- Fixed: Enter key in BypassEnterKey mode no longer produces visible cursor flash or trailing newline artifacts in contenteditable
- Added: CSS-based instant artifact hiding (rte-bypass-enter) eliminates visual flicker before JS cleanup runs
- Added: MutationObserver replaces queueMicrotask for faster DOM cleanup of Enter artifacts
- Added: beforeinput handler now also catches insertLineBreak (browser-specific edge case)
- Added: Empty editor guard prevents sending blank messages and clears artifacts on Enter
- Added: aria-multiline="false" when BypassEnterKey is enabled for correct screen reader semantics

v1.2.2 Bug Fix (2026-03-09)
- Fixed: Improved Enter key send reliability when BypassEnterKey is enabled (race condition between input debounce and Enter handler)

v1.2.1 Bug Fix (2026-02-22)
- Fixed: Emoji autocomplete popup now highlights the first item on open (was showing last item)