Soenneker.Blazor.Quill 4.0.27

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

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Blazor.Quill

A Blazor interop library for Quill, the editor

Installation

dotnet add package Soenneker.Blazor.Quill

Setup

Register services in Program.cs:

builder.Services.AddQuillInteropAsScoped();

The component lazy-loads the Quill assets for you, so you do not need to add the Quill CSS or script tags manually.

Usage

@using Soenneker.Blazor.Quill
@using Soenneker.Blazor.Quill.Dtos
@using Soenneker.Blazor.Quill.Options

<QuillEditor @ref="_editor"
             Options="_options"
             @bind-Html="_html"
             @bind-Text="_text"
             OnTextChange="OnTextChange"
             OnSelectionChange="OnSelectionChange" />

@code {
    private QuillEditor? _editor;
    private string? _html;
    private string? _text;

    private readonly QuillOptions _options = new()
    {
        Placeholder = "Start typing...",
        Theme = "snow",
        Modules = new Dictionary<string, object?>
        {
            ["toolbar"] = new object[]
            {
                new[] {"bold", "italic", "underline"},
                new[] {"link", "image"},
                new[] {"clean"}
            }
        }
    };

    private Task OnTextChange(QuillTextChange change)
    {
        Console.WriteLine(change.Html);
        return Task.CompletedTask;
    }

    private Task OnSelectionChange(QuillSelectionChange change)
    {
        Console.WriteLine(change.Range?.Index);
        return Task.CompletedTask;
    }
}

Programmatic API

Use the component reference when you want to control Quill from Blazor code:

await _editor!.SetHtml("<p>Hello from Blazor</p>");
string html = await _editor.GetHtml() ?? "";
string text = await _editor.GetText();
string deltaJson = await _editor.GetContents();

await _editor.Focus();
await _editor.SetSelection(0, 5);
await _editor.Clear();

Optional Manual Initialization

If you only want to preload the package resources without rendering the component yet, the existing utility is still available:

builder.Services.AddQuillUtilAsScoped();

@inject IQuillUtil Quill

await Quill.Initialize();
Product Compatible and additional computed target framework versions.
.NET 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

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
4.0.27 91 5/13/2026
4.0.26 95 5/13/2026
4.0.25 90 5/12/2026
4.0.24 94 5/3/2026
4.0.23 91 5/1/2026
4.0.22 99 4/24/2026
4.0.21 93 4/24/2026
4.0.20 94 4/24/2026
4.0.19 98 4/23/2026
4.0.18 102 4/23/2026
4.0.17 108 4/22/2026
4.0.16 99 4/22/2026
4.0.15 121 4/15/2026
4.0.14 95 4/15/2026
4.0.13 94 4/14/2026
4.0.12 92 4/14/2026
4.0.11 95 4/13/2026
4.0.10 94 4/13/2026
4.0.9 100 4/13/2026
4.0.8 102 4/8/2026
Loading failed