ccPro.BlazorSunEditor 1.0.0

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

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 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. 
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
1.0.0 306 11/16/2025