Skip to content

Commit 4e7934c

Browse files
authored
Merge pull request #7202 from syncfusion-content/945108-DE-Fi
945108: Staging Failure Resolved
2 parents 479801a + c615cf6 commit 4e7934c

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
@using Syncfusion.Blazor.RichTextEditor
2+
3+
<SfRichTextEditor>
4+
<RichTextEditorToolbarSettings Items="@Tools" />
5+
<table border="1" style="width:100%; border-collapse: collapse;">
6+
<tr>
7+
<th>Department</th>
8+
<th>Details</th>
9+
</tr>
10+
<tr>
11+
<td>Sales</td>
12+
<td>
13+
<table border="1" style="width:100%; border-collapse: collapse;">
14+
<tr>
15+
<th>Employee</th>
16+
<th>Target</th>
17+
</tr>
18+
<tr>
19+
<td>John Doe</td>
20+
<td>$50,000</td>
21+
</tr>
22+
<tr>
23+
<td>Jane Smith</td>
24+
<td>$60,000</td>
25+
</tr>
26+
</table>
27+
</td>
28+
</tr>
29+
<tr>
30+
<td>Marketing</td>
31+
<td>Campaign planning in progress</td>
32+
</tr>
33+
</table>
34+
</SfRichTextEditor>
35+
36+
@code{
37+
private List<ToolbarItemModel> Tools = new List<ToolbarItemModel>()
38+
{
39+
new ToolbarItemModel() { Command = ToolbarCommand.Bold },
40+
new ToolbarItemModel() { Command = ToolbarCommand.Italic },
41+
new ToolbarItemModel() { Command = ToolbarCommand.Underline },
42+
new ToolbarItemModel() { Command = ToolbarCommand.StrikeThrough },
43+
new ToolbarItemModel() { Command = ToolbarCommand.Separator },
44+
new ToolbarItemModel() { Command = ToolbarCommand.FontColor },
45+
new ToolbarItemModel() { Command = ToolbarCommand.BackgroundColor },
46+
new ToolbarItemModel() { Command = ToolbarCommand.Separator },
47+
new ToolbarItemModel() { Command = ToolbarCommand.Formats },
48+
new ToolbarItemModel() { Command = ToolbarCommand.Alignments },
49+
new ToolbarItemModel() { Command = ToolbarCommand.Separator },
50+
new ToolbarItemModel() { Command = ToolbarCommand.OrderedList },
51+
new ToolbarItemModel() { Command = ToolbarCommand.UnorderedList },
52+
new ToolbarItemModel() { Command = ToolbarCommand.Separator },
53+
new ToolbarItemModel() { Command = ToolbarCommand.Outdent },
54+
new ToolbarItemModel() { Command = ToolbarCommand.Indent },
55+
new ToolbarItemModel() { Command = ToolbarCommand.Separator },
56+
new ToolbarItemModel() { Command = ToolbarCommand.CreateLink },
57+
new ToolbarItemModel() { Command = ToolbarCommand.Image },
58+
new ToolbarItemModel() { Command = ToolbarCommand.CreateTable },
59+
new ToolbarItemModel() { Command = ToolbarCommand.Separator },
60+
new ToolbarItemModel() { Command = ToolbarCommand.Undo },
61+
new ToolbarItemModel() { Command = ToolbarCommand.Redo }
62+
};
63+
}

0 commit comments

Comments
 (0)