@@ -21,7 +21,7 @@ Refer to the following code sample for the custom tool with the tooltip text, wh
21
21
@using Syncfusion.Blazor.Buttons
22
22
@using Syncfusion.Blazor.RichTextEditor
23
23
24
- <SfRichTextEditor >
24
+ <SfRichTextEditor @ ref ="RteObj" >
25
25
<RichTextEditorToolbarSettings Items =" @Tools " >
26
26
<RichTextEditorCustomToolbarItems >
27
27
<RichTextEditorCustomToolbarItem Name =" Symbol " >
@@ -35,6 +35,7 @@ Refer to the following code sample for the custom tool with the tooltip text, wh
35
35
</SfRichTextEditor >
36
36
37
37
@code {
38
+ SfRichTextEditor RteObj;
38
39
private List<ToolbarItemModel > Tools = new List<ToolbarItemModel >()
39
40
{
40
41
new ToolbarItemModel() { Command = ToolbarCommand.Bold },
@@ -45,11 +46,11 @@ Refer to the following code sample for the custom tool with the tooltip text, wh
45
46
new ToolbarItemModel() { Command = ToolbarCommand.SourceCode },
46
47
new ToolbarItemModel() { Command = ToolbarCommand.FullScreen }
47
48
};
48
- private void ClickHandler()
49
+ private async Task ClickHandler()
49
50
{
50
51
ExecuteCommandOption executeCommandOption = new ExecuteCommandOption();
51
52
executeCommandOption.Undo = true;
52
- await this. RteObj.ExecuteCommandAsync(CommandName.InsertText, "₹", executeCommandOption);
53
+ await RteObj.ExecuteCommandAsync(CommandName.InsertText, "₹", executeCommandOption);
53
54
}
54
55
}
55
56
0 commit comments