RichTextBox.AspNetCore
1.0.0-preview.5
This is a prerelease version of RichTextBox.AspNetCore.
dotnet add package RichTextBox.AspNetCore --version 1.0.0-preview.5
NuGet\Install-Package RichTextBox.AspNetCore -Version 1.0.0-preview.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="RichTextBox.AspNetCore" Version="1.0.0-preview.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RichTextBox.AspNetCore" Version="1.0.0-preview.5" />
<PackageReference Include="RichTextBox.AspNetCore" />
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 RichTextBox.AspNetCore --version 1.0.0-preview.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RichTextBox.AspNetCore, 1.0.0-preview.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 RichTextBox.AspNetCore@1.0.0-preview.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=RichTextBox.AspNetCore&version=1.0.0-preview.5&prerelease
#tool nuget:?package=RichTextBox.AspNetCore&version=1.0.0-preview.5&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RichTextBox for ASP.NET Core
RichTextBox is an ASP.NET Core wrapper around the RichTextEditor client runtime.
It provides:
- a
richtextboxTag Helper for Razor Pages and MVC - bundled static web assets for the editor runtime
builder.Services.AddRichTextBox()for package setupapp.MapRichTextBoxUploads()for compatible upload and folder-aware image gallery endpointsRichTextBox.licvalidation for packaged and deployed apps- opt-in autosave via
auto-save,auto-save-key, andauto-save-delay - context menu control via
enable-context-menuandcontext-menu-mode - dialog library configuration via
image-items-json,gallery-images-json, andhtml-templates-json
Typical usage:
@addTagHelper *, RichTextBox
<form method="post">
<richtextbox asp-for="Body" toolbar="full" skin="gray" height="420px" />
</form>
Autosave example:
<richtextbox
asp-for="Body"
toolbar="full"
enable-context-menu="true"
context-menu-mode="Simple"
auto-save="true"
auto-save-key="draft:body"
auto-save-delay="600" />
Dialog library example:
@{
var imageItemsJson = System.Text.Json.JsonSerializer.Serialize(new[]
{
"/images/microsoft.svg",
"/images/Intel.svg"
});
var galleryImagesJson = System.Text.Json.JsonSerializer.Serialize(new object[]
{
new { url = "/images/microsoft.svg", text = "Microsoft logo" },
new { url = "/images/Intel.svg", text = "Intel logo" }
});
var htmlTemplatesJson = System.Text.Json.JsonSerializer.Serialize(new object[]
{
new object[] { "Newsletter", "<section><h2>Newsletter</h2><p>Start here.</p></section>" }
});
}
<richtextbox
asp-for="Body"
toolbar="full"
image-items-json="@imageItemsJson"
gallery-images-json="@galleryImagesJson"
html-templates-json="@htmlTemplatesJson" />
The three dialog configuration attributes expect JSON arrays.
app.MapRichTextBoxUploads() now exposes both:
- the upload endpoint used by the runtime uploader
- a gallery endpoint used by the insert image gallery dialog for folder browsing and folder creation
Context menu presets:
DefaultSimpleMinimal
Bundled skins currently include:
graybluedarkoffice2007blue
License file placement for ASP.NET Core:
- place
RichTextBox.licin the app content root, besideProgram.csand your.csproj - the default lookup path is
RichTextBox.lic - the website demo project already copies that file to build and publish output
You can also override the default content-root-relative path:
builder.Services.AddRichTextBox(options =>
{
options.LicenseContentRootRelativePath = "licenses/RichTextBox.lic";
});
| 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 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 was computed. 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.
-
net8.0
- No dependencies.
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 |
|---|---|---|
| 1.0.0-preview.5 | 49 | 4/8/2026 |