Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
erinnmclaughlin authored Nov 6, 2023
1 parent ac75bca commit c6677cd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,26 @@ A customizable HTML editor component for [MudBlazor](https://mudblazor.com/), po
Works in dark mode, too!

![image](https://github.com/erinnmclaughlin/MudBlazor.HtmlEditor/assets/22223146/a1d24634-cee5-4d1e-8031-a7e1b842ad11)

### Download from NuGet

```cmd
dotnet add package Tizzani.MudBlazor.HtmlEditor
```

### Setup
In the `Page.cshtml` file (if Blazor Server) or `index.html` file (if Blazor WASM), add the following:
```html
<link href="_content/Tizzani.MudBlazor.HtmlEditor/MudHtmlEditor.css" rel="stylesheet" />
```

```html
<script src="https://cdn.quilljs.com/1.3.6/quill.min.js"></script>
<script src="_content/Tizzani.MudBlazor.HtmlEditor/quill-blot-formatter.min.js"></script> <!-- optional; for image resize -->
<script src="_content/Tizzani.MudBlazor.HtmlEditor/MudHtmlEditor.js"></script>
```

In `Program.cs`, add the following
```cs
builder.Services.AddMudHtmlEditor();
```

0 comments on commit c6677cd

Please sign in to comment.