You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://github.com/Blazored/TextEditor/actions/workflows/ci-main.yml)
8
+
[](https://github.com/Blazored/TextEditor/actions/workflows/ci-pr.yml)
*[Simple blogging application written in Microsoft Server Side Blazor](https://github.com/ADefWebserver/Blazor-Blogs"Blazor Blogs") - [Contains an example of uploading images]
*[Creating A Rich Text Editor In Blazor Using Quill](https://blazorhelpwebsite.com/ViewBlogPost/12"BlazorHelpWebsite.com")
14
24
15
-
###Installing
25
+
## Installing
16
26
17
27
You can install from NuGet using the following command:
18
28
19
29
`Install-Package Blazored.TextEditor`
20
30
21
31
Or via the Visual Studio package manger.
22
32
23
-
### Setup
33
+
## Setup
34
+
24
35
Blazor Server applications will need to include the following CSS and JS files in their `Pages\_Host.cshtml` (or `Pages/_Layout.cshtml` if using .Net 6).
25
36
26
37
In the `head` tag add the following CSS.
@@ -61,6 +72,7 @@ Below is a list of all the options available on the Text Editor.
61
72
-`Placeholder` (Optional - Default: `Compose an epic...`) - The text to show when editor is empty.
62
73
-`Theme` (Optional - Default: `snow`) - Use `snow` to show the Toolbar on top of the editor, and `bubble` for inline editing.
63
74
-`DebugLevel` (Optional - Default: `info`) - Determines the level of debug information returned to the web browser console window. Options are `error`, `warn`, `log`, or `info`.
75
+
-`Syntax` (Optional - Default: `false`) - The Syntax Module enhances the Code Block format by automatically detecting and applying syntax highlighting.
64
76
65
77
**Methods**
66
78
@@ -72,9 +84,13 @@ Below is a list of all the options available on the Text Editor.
72
84
-`InsertImage` (`string`) - Inserts an image at the current point in the editor.
73
85
-`InsertText` (`string`) - Inserts text at the current point in the editor.
74
86
87
+
## Basic Example
88
+
89
+
(see code in the [`Index.razor` page](https://github.com/Blazored/TextEditor/blob/main/samples/BlazorServerSide/Pages/Index.razor) in the repo for more examples)
90
+
91
+
<details>
92
+
<summary>Code</summary>
75
93
76
-
### Basic Example
77
-
(see code in the [Index.razor page](https://github.com/Blazored/TextEditor/blob/main/samples/BlazorServerSide/Pages/Index.razor) in the repo for more examples)
78
94
```cs
79
95
@usingBlazored.TextEditor
80
96
@@ -148,8 +164,15 @@ string QuillHTMLContent;
148
164
}
149
165
```
150
166
167
+
</details>
168
+
151
169
### Alternative Using of the BlazoredTextEditor Component
0 commit comments