HtmlEditor.Blazor
1.0.0
dotnet add package HtmlEditor.Blazor --version 1.0.0
NuGet\Install-Package HtmlEditor.Blazor -Version 1.0.0
<PackageReference Include="HtmlEditor.Blazor" Version="1.0.0" />
paket add HtmlEditor.Blazor --version 1.0.0
#r "nuget: HtmlEditor.Blazor, 1.0.0"
// Install HtmlEditor.Blazor as a Cake Addin #addin nuget:?package=HtmlEditor.Blazor&version=1.0.0 // Install HtmlEditor.Blazor as a Cake Tool #tool nuget:?package=HtmlEditor.Blazor&version=1.0.0
HtmlEditor.Blazor Getting Started Instructions
1. Install
HtmlEditor Blazor Components are distributed as the HtmlEditor.Blazor nuget package.
You can add them to your project in one of the following ways
Install the package from command line by running
`dotnet add package HtmlEditor.Blazor`
Add the project from the Visual Nuget Package Manager.
2. Import the namespace
Open the _Imports.razor
file of your Blazor application and add these two lines @using HtmlEditor
and @using HtmlEditor.Blazor
.
3. Include a theme
Alternatively you can include <link rel="stylesheet" href="_content/HtmlEditor.Blazor/css/default.css">
which embeds Bootstrap.
4. Include HtmlEditor.Blazor.js
Open the _Host.cshtml
file (server-side Blazor) or wwwroot/index.html
(client-side WebAssembly Blazor) and include this snippet
<script src="_content/HtmlEditor.Blazor/HtmlEditor.Blazor.js"></script>
5. Use a component
Use any HtmlEditor Blazor component by typing its tag name in a Blazor page e.g. Setting a property
<HtmlEditorComponent UploadUrl="upload/image" Change="@OnChange" Paste="@OnPaste" Execute="@OnExecute" ></HtmlEditorComponent>
@code {
void OnPaste(HtmlEditorPasteEventArgs args)
{
////
}
void OnChange(string html)
{
////
}
void OnExecute(HtmlEditorExecuteEventArgs args)
{
////
}
}
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. |
-
net6.0
- LibSassBuilder (>= 2.0.2)
- Microsoft.AspNetCore.Components (>= 6.0.8)
- Microsoft.AspNetCore.Components.Web (>= 6.0.8)
- Microsoft.CSharp (>= 4.7.0)
- System.Linq.Dynamic.Core (>= 1.2.20)
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 | 851 | 9/17/2022 |