Avalonia.Controls.RichTextEditor 12.4.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Avalonia.Controls.RichTextEditor --version 12.4.0
                    
NuGet\Install-Package Avalonia.Controls.RichTextEditor -Version 12.4.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="Avalonia.Controls.RichTextEditor" Version="12.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Avalonia.Controls.RichTextEditor" Version="12.4.0" />
                    
Directory.Packages.props
<PackageReference Include="Avalonia.Controls.RichTextEditor" />
                    
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 Avalonia.Controls.RichTextEditor --version 12.4.0
                    
#r "nuget: Avalonia.Controls.RichTextEditor, 12.4.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 Avalonia.Controls.RichTextEditor@12.4.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=Avalonia.Controls.RichTextEditor&version=12.4.0
                    
Install as a Cake Addin
#tool nuget:?package=Avalonia.Controls.RichTextEditor&version=12.4.0
                    
Install as a Cake Tool

Avalonia.Controls.RichTextEditor

A rich text editing control for Avalonia UI applications. Provides a FlowDocumentScrollViewer for read-only display and a RichTextEditor control with full editing, selection, keyboard/mouse handling, undo/redo, and extensible highlighting.

Features

  • RichTextEditor control with full editing support
  • FlowDocumentScrollViewer for read-only document rendering
  • Keyboard and mouse input handling
  • Caret and selection management
  • Extensible highlight layers
  • Block adorner system
  • Editor toolbar with overflow menu support

Quick Start

<RichTextEditor>
  <FlowDocument>
    <Paragraph>
      <Run>Hello, rich text!</Run>
    </Paragraph>
  </FlowDocument>
</RichTextEditor>

Dependencies

  • Avalonia.Controls.Documents

Documentation

See the documentation for more details.

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 was computed.  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 Avalonia.Controls.RichTextEditor:

Package Downloads
Devolutions.AvaloniaControls.SpreadsheetEditor

An Excel-like spreadsheet editor control for Avalonia UI: a custom grid with cell merging, rich in-cell editing, a formula engine, charts, multi-sheet tabs, undo/redo, and printing. Requires the commercial Avalonia Accelerate packages (a valid Avalonia UI license key must be supplied by the consuming application).

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
12.4.1 80 11/5/2026
12.4.0 6,771 10/28/2026
12.3.1 11,703 10/8/2026
12.3.0 4,461 9/11/2026
12.2.3 14,159 8/20/2026
12.2.2 3,783 7/31/2026
12.2.1 208 7/29/2026
12.2.0 38,952 7/23/2026
12.1.5 1,483 6/29/2026
12.1.4 9,243 6/22/2026
12.1.3 219 6/9/2026
12.1.2 194 6/2/2026
12.1.1 464 5/14/2026
12.1.0 539 5/12/2026

## 12.4.0

Adds to 12.3.1 and removes nothing. The line break, text change and undo changes in the `Avalonia.Controls.Documents` 12.4.0 notes apply to the editor as well.

### Behavioural changes
- Enter inside a code block (any block kind flagged `Preformatted`, such as a markdown fenced code block) inserts a line into the block. It split the block like a paragraph, and every line after the caret left the fence and was saved as ordinary text.
- Shift+Enter inside a code block inserts the same line feed as Enter. It inserted `Environment.NewLine` as text, so on Windows a code block mixed CR LF into its LF lines.
- A collapsed Backspace or Delete removes the whole grapheme next to the caret, as the caret steps over it. It removed one UTF-16 code unit, which left half of an emoji's surrogate pair behind.

### Fixes
- A collapsed Backspace or Delete at a block edge that cannot merge or unwrap stops there. It deleted the last character of the block before or the first of the block after: Backspace at the start of a section's first paragraph ate the end of the section above.
- Undoing a collapsed Backspace or Delete at the start of a block that follows an empty paragraph puts the character back where it was. It went into the empty paragraph, or into a bold span before the caret.
- Markdown headings, code blocks, task items and alerts edit like the blocks they extend: Backspace and Delete merge a heading or code block with a neighbouring paragraph, and Backspace at the start of a task item leaves the list.