Blazing Components is a collection of easy to use and implement Razor components class libraries
Summernote is a Super simple WYSIWYG Editor,
Check their homepage for more details.
Add reference to style sheet & javascript references Add the following line to the head tag of your _Host.cshtml (Blazor Server) or index.html (Blazor WebAssembly).
<link href="./_content/BlazingComponents.Summernote/summernote/summernote-lite.min.css" rel="stylesheet" />
....
<link href="{YourBlazorProject}.styles.css" rel="stylesheet" />
<link href="./_content/BlazingComponents.Summernote/summernote/summernote-lite.min.css" rel="stylesheet" />
</head>
Then add a reference to the Summernode JavaScript file at the bottom of the respective page after the reference to the Blazor file.
<script src="./_content/BlazingComponents.Summernote/summernote/jquery-3.4.1.slim.min.js"></script>
<script src="./_content/BlazingComponents.Summernote/summernote/summernote-lite.min.js"></script>
....
<script src="_framework/blazor.webassembly.js"></script>
<script src="./_content/BlazingComponents.Summernote/summernote/jquery-3.4.1.slim.min.js"></script>
<script src="./_content/BlazingComponents.Summernote/summernote/summernote-lite.min.js"></script>
<script>navigator.serviceWorker.register('service-worker.js');</script>
</body>
BlazingComponents.Summernote will update the bound content variable on change in the editor.
@page "/"
<BlazingComponents.Summernote.Editor @bind-content="@content" />
<h2>@content</h2>
@code{
private string content;
}
Add additional configuration and customiztion options.