Avalonia HTML Editor Control

Let users visually edit the HTML your Avalonia app stores and sends. Build message composers and reusable templates with tables, images and merge fields on Windows, macOS and Linux.

Clone from GitHub

Quickstart and feature examples

Download samples

Demo project and offline packages

Book a live demo

Free, 1:1 with a domain expert

Clone the C# Avalonia sample projects to evaluate the editor and explore application integration. If your organization blocks GitHub, the ZIP contains a standalone demo project and an offline package feed. Both use the same published editor version.

Install via NuGet
PM> Install-Package SpiceLogic.HtmlEditor.Avalonia
Works with
.NET: 8 (net8.0) Avalonia: 12.1.4 Operating systems: Windows, macOS and Linux Browser runtimes: WebView2, WKWebView and WebKitGTK Native tests: Windows 11 x64; Apple silicon macOS; Ubuntu 24.04 x64 (Xorg) Application type: Avalonia desktop applications .NET SDK: 9.0.300 or newer (SDK 10 recommended)
01

HTML editing for business messages and templates

Give business users a visual editor for HTML messages, reusable templates and other content inside your Avalonia application.

The package brings together the editing surface, native Avalonia toolbars, Word paste cleanup, HTML APIs and runnable C# examples. Get direct engineering help when integrating the control into your application.

You can also build a solution around a WebView and a JavaScript editor. Choose SpiceLogic when you want this workflow packaged and supported as an Avalonia control.

See the tested desktop configurations and browser prerequisites for Windows, macOS and Linux.

Read the walkthrough
SpiceLogic Avalonia HTML Editor with its complete toolbars surrounding a clearly labeled sample HTML document and quarterly-performance infographic.
02

Load HTML, edit it visually, save HTML back

Load an HTML body fragment or a complete HTML document, let users edit it, and retrieve the result through awaited APIs.

Your application decides when to save and where to store the content. Use the resulting HTML in your existing message, template or document workflow. Your application remains responsible for storage and delivery.

Read the walkthrough
HTML reopened after a real edit and save, with its sentence, headings, table and list retained.
03

Let users build reusable HTML templates

Define the merge fields your application needs, such as customer names, references and other business values. Let users insert those fields while composing an HTML template.

Resolve the fields through the mail merge API when producing the final content. Supplied values become literal text within the template structure.

Read the walkthrough
Actual customer-name field inserted into an HTML template in the public Avalonia sample.

More features

04 Switch between visual editing, HTML source and preview Let users compose visually in Design view, inspect or edit the markup in Source view, and review the rendered document in read-only Preview.

Let users compose visually in Design view, inspect or edit the markup in Source view, and review the rendered document in read-only Preview.

The source view includes syntax highlighting, line numbers, indentation and wrapped lines. All three views belong to the same editing workflow.

SpiceLogic Avalonia HTML Editor showing indented, syntax-highlighted HTML, line numbers and all three mode controls, with source mode selected.
Read the walkthrough
05 Edit tables with visual tools Let users create tables and revise rows, columns, cells and supported styles within the document.

Let users create tables and revise rows, columns, cells and supported styles within the document.

Use the awaited table APIs when your application needs its own commands alongside the built-in authoring tools.

Four actual table cells selected for a rectangular table-authoring operation.
Read the walkthrough
06 Include images in your saved HTML Use embedded raster images when a document needs to carry its image content.

Use embedded raster images when a document needs to carry its image content. Set alternative text and dimensions, then retrieve the saved HTML through the editor APIs.

For email workflows, follow the image embedding guidance and check the result in your target mail clients.

Embedded image selected with native resize handles in a formatted HTML document.
Read the walkthrough
07 Fit editing commands to your application Customize the native Avalonia toolbars, replace built-in command routes and adapt the document context menu to your application.

Customize the native Avalonia toolbars, replace built-in command routes and adapt the document context menu to your application.

Use named item references to keep the commands your users need without rebuilding the editing surface.

Actual application-owned Avalonia context menu alongside the editor's native toolbar.
Read the walkthrough
08 Review spelling locally Give users inline spelling marks and interactive review with bundled dictionaries.

Give users inline spelling marks and interactive review with bundled dictionaries.

Select the dictionary for the document and keep approved custom words in a configured local dictionary.

Actual local spelling review with suggested corrections and native Replace actions.
Read the walkthrough
09 Match your app's appearance and language Style the native Avalonia controls and choose the editor's user-interface language.

Style the native Avalonia controls and choose the editor's user-interface language.

Configure document fonts and colors separately so the editor interface fits your app while the saved HTML follows your content requirements.

Native Avalonia Light theme and complete editor toolbars around the authored document.
Read the walkthrough

Supported environments.

.NET

8 (net8.0)

Avalonia

12.1.4

Operating systems

Windows, macOS and Linux

Browser runtimes

WebView2, WKWebView and WebKitGTK

Native tests

Windows 11 x64; Apple silicon macOS; Ubuntu 24.04 x64 (Xorg)

Application type

Avalonia desktop applications

.NET SDK

9.0.300 or newer (SDK 10 recommended)

Terms that have become rare.

01

Your application controls its data.

The built-in editor and spelling review run locally. Your application decides how to store documents and which external resources to load.

02

You buy it once. It is yours.

A true perpetual license, sold this way since 2007. No subscription meter running while you finish the work.

03

One-to-one support from a human domain expert.

Not a chatbot, not a call center. Support is a live conversation with the engineers who build the software. One call away, on Zoom or Teams, free.

Integrating this week? Talk to the engineers who build it.

Every trial and every license includes free live 1:1 sessions on Zoom or Teams. You will talk to a real human, a domain expert who builds this software, and we will help you wire it into your app. No chatbot, no call center, no ticket queue.

Weigh it yourself. The evaluation build is the full control, in your solution, today.

Download samples

Demo project and offline packages

Book a live demo

Free, 1:1 with our engineers