Skip to content

Commit ade40b2

Browse files
authored
Removed the old structure code
1 parent b3e8b95 commit ade40b2

File tree

1 file changed

+39
-38
lines changed

1 file changed

+39
-38
lines changed

Pages/Index.razor

Lines changed: 39 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,42 @@
1-
@page "/"
1+
@page "/"
22
@using Syncfusion.Blazor.RichTextEditor
3-
@using Syncfusion.Blazor.Buttons
43

5-
<SfButton @onclick="@GetFormattedHtml">Get Html</SfButton>
6-
<SfRichTextEditor @bind-Value="@RTEValue" SaveInterval="1" EditorMode="EditorMode.Markdown">
7-
<RichTextEditorToolbarSettings Items="Tools"></RichTextEditorToolbarSettings>
8-
@* <p><a href="https://blazor.syncfusion.com/documentation/rich-text-editor/getting-started">Rich Text Editor</a> allows to insert images from online source as well as local computer where you want to insert the image in your content.</p>
9-
<p><b>Get started Quick Toolbar to click on the image</b></p>
10-
<p>It is possible to add custom style on the selected image inside the Rich Text Editor through quick toolbar.</p>
11-
<img src="https://blazor.syncfusion.com/demos/images/RichTextEditor/RTEImage-Feather.png" style='width: 300px; height: 200px' />*@
12-
In Rich Text Editor , you click the toolbar buttons to format the words and the changes are visible immediately.
13-
Markdown is not like that. When you format the word in Markdown format, you need to add Markdown syntax to the word to indicate which words
14-
and phrases should look different from each other.
15-
Rich Text Editor supports markdown editing when the editorMode set as **markdown** and using both *keyboard interaction* and *toolbar action*,
16-
you can apply the formatting to text.
17-
We can add our own custom formation syntax for the Markdown formation, [sample link](https://blazor.syncfusion.com/home/).
18-
The third-party library <b>Marked</b> is used in this sample to convert markdown into HTML content.
19-
20-
Markdown Table Format
21-
|Heading 1|Heading 2|
22-
|---------|---------|
23-
|Col A1|Col A2|
24-
|Col B1|Col B2|
4+
<SfRichTextEditor>
5+
<ChildContent>
6+
<p>
7+
The Rich Text Editor component is a WYSIWYG ("what you see is what you get") editor that provides the best user experience to create and update the content.
8+
Users can format their content using standard toolbar commands.
9+
</p><p><b>Key features:</b></p><ul>
10+
<li>
11+
<p>Provides &lt;IFRAME&gt; and &lt;DIV&gt; modes</p>
12+
</li>
13+
<li>
14+
<p>Capable of handling markdown editing.</p>
15+
</li>
16+
<li>
17+
<p>Contains a modular library to load the necessary functionality on demand.</p>
18+
</li>
19+
<li>
20+
<p>Provides a fully customizable toolbar.</p>
21+
</li>
22+
<li>
23+
<p>Provides HTML view to edit the source directly for developers.</p>
24+
</li>
25+
<li>
26+
<p>Supports third-party library integration.</p>
27+
</li>
28+
<li>
29+
<p>Allows a preview of modified content before saving it.</p>
30+
</li>
31+
<li>
32+
<p>Handles images, hyperlinks, video, hyperlinks, uploads, etc.</p>
33+
</li>
34+
<li>
35+
<p>Contains undo/redo manager.</p>
36+
</li>
37+
<li>
38+
<p>Creates bulleted and numbered lists.</p>
39+
</li>
40+
</ul>
41+
</ChildContent>
2542
</SfRichTextEditor>
26-
27-
@code{
28-
29-
public string RTEValue { get; set; }
30-
31-
public object[] Tools = new object[]
32-
{
33-
"Bold", "Italic", "Undo", "Redo", "CreateTable", "Image", "CreateLink"
34-
};
35-
36-
37-
public void GetFormattedHtml()
38-
{
39-
string RteHtml = this.RTEValue;
40-
}
41-
}

0 commit comments

Comments
 (0)