Answer:
We can change Rich Text Editor text dynamically, with a button click by using the Interpolation concept with the Value property.
<SfRichTextEditor @ref="RteObj" @bind-Value="@value"> public string Message1 { get; set; } = "aaaa"; public string Message2 { get; set; } = "bbbbb"; public string GetRtevalue() return $"Value is {Message1}<br/>Rich Text Editor<br/> {Message2}"; this.value = GetRtevalue(); protected override void OnInitialized() this.value = GetRtevalue(); |
Find the sample for replacing text in Blazor RichTextEditor from here.