ccPro.BlazorSunEditor
1.0.0
dotnet add package ccPro.BlazorSunEditor --version 1.0.0
NuGet\Install-Package ccPro.BlazorSunEditor -Version 1.0.0
<PackageReference Include="ccPro.BlazorSunEditor" Version="1.0.0" />
<PackageVersion Include="ccPro.BlazorSunEditor" Version="1.0.0" />
<PackageReference Include="ccPro.BlazorSunEditor" />
paket add ccPro.BlazorSunEditor --version 1.0.0
#r "nuget: ccPro.BlazorSunEditor, 1.0.0"
#:package ccPro.BlazorSunEditor@1.0.0
#addin nuget:?package=ccPro.BlazorSunEditor&version=1.0.0
#tool nuget:?package=ccPro.BlazorSunEditor&version=1.0.0
ccPro.BlazorSunEditor
A powerful, lightweight, fully client-side WYSIWYG HTML editor for
Blazor WebAssembly, built on top of SunEditor, packaged with
zero external dependencies.
All JS/CSS files are embedded inside the NuGet package --- no need to
modify index.html, no jQuery, no Bootstrap.
🚀 Features
- ✔ 100% client-side\
- ✔ Zero dependencies (no jQuery / no Bootstrap)\
- ✔ All SunEditor JS/CSS auto-loaded from by plugin
- ✔ Fully customizable toolbar\
- ✔ Boolean switches to enable/disable each feature\
- ✔ Two-way binding support (
@bind-Value)\ - ✔ Initial content + change detection\
- ✔ Works in Blazor WebAssembly and Blazor Server\
- ✔ Simple clean API\
- ✔ Perfect for CMS, admin panels, and rich text editing
📦 Installation
Install via NuGet:
dotnet add package ccPro.BlazorSunEditor
🛠 Minimal Setup
no need any setup
✏️ Basic Usage
@page "/editor"
@using ccPro.BlazorSunEditor
<SunEditor
@bind-Value="Content"
Height="300"
/>
@code {
private string Content = "<p>Hello world!</p>";
}
🎛 Full Toolbar Control (Boolean Toggles)
Every toolbar button can be turned on/off:
<SunEditor
@bind-Value="Content"
Height="300"
ShowBold="true"
ShowItalic="true"
ShowUnderline="true"
ShowStrike="true"
ShowList="true"
ShowFont="true"
ShowFontSize="true"
ShowColor="true"
ShowImage="true"
ShowVideo="true"
ShowTable="true"
ShowAlign="true"
ShowParagraphStyle="true"
ShowHorizontalRule="true"
ShowBlockquote="true"
ShowLink="true"
ShowUndoRedo="true"
ShowFullScreen="true"
/>
All features are enabled by default --- set any to false to
disable.
📥 Initial Content
<SunEditor Value="<h2>Hello!</h2> Text here..." />
🔄 Two-way Binding
<SunEditor @bind-Value="Content" />
<p>@Content</p>
🧠 Parameters List
Parameter Type Default Description
Value string "" Initial HTML content
@bind-Value string -- Two-way HTML binding
Height int 300 Editor height
Placeholder string "" Placeholder text
ReadOnly bool false Disables editing
ShowBold bool true Bold button
ShowItalic bool true Italic button
ShowUnderline bool true Underline
ShowStrike bool true Strike-through
ShowList bool true Ordered / unordered lists
ShowFont bool true Font selector
ShowFontSize bool true Font size selector
ShowColor bool true Text & background color
ShowImage bool true Image upload/insert
ShowVideo bool true Video embed
ShowTable bool true Insert tables
ShowAlign bool true Alignment tools
ShowParagraphStyle bool true Paragraph styles
ShowHorizontalRule bool true Line divider
ShowBlockquote bool true Blockquotes
ShowLink bool true Insert hyperlink
ShowUndoRedo bool true Undo/Redo
ShowFullScreen bool true Fullscreen mode
❤️ Author
Sayad Heydari
Senior Full-Stack Developer (.NET + Blazor)
📜 License
MIT License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.Components.Web (>= 6.0.36)
- Microsoft.AspNetCore.Components.WebAssembly (>= 6.0.36)
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 | 306 | 11/16/2025 |