BlazorRTE 1.2.5
dotnet add package BlazorRTE --version 1.2.5
NuGet\Install-Package BlazorRTE -Version 1.2.5
<PackageReference Include="BlazorRTE" Version="1.2.5" />
<PackageVersion Include="BlazorRTE" Version="1.2.5" />
<PackageReference Include="BlazorRTE" />
paket add BlazorRTE --version 1.2.5
#r "nuget: BlazorRTE, 1.2.5"
#:package BlazorRTE@1.2.5
#addin nuget:?package=BlazorRTE&version=1.2.5
#tool nuget:?package=BlazorRTE&version=1.2.5
BlazorRTE - Rich Text Editor for Blazor
Native Blazor • Keyboard Accessible • Zero External Dependencies
🌐 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 Mode —
BypassEnterKey="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 | Versions 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. |
-
net10.0
- BlazorEmo (>= 1.0.2)
- Microsoft.AspNetCore.Components.Web (>= 10.0.2)
-
net8.0
- BlazorEmo (>= 1.0.2)
- Microsoft.AspNetCore.Components.Web (>= 8.0.12)
-
net9.0
- BlazorEmo (>= 1.0.2)
- Microsoft.AspNetCore.Components.Web (>= 9.0.3)
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.
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)