Answer:
We can achieve this by replacing the non-zero width space with the empty value in the Rich Text Editor content before using or saving the value.
<SfRichTextEditor @bind-Value="@rteValue"> <SfButton Type="submit" CssClass="e-primary" @onclick="@SaveText">Save</SfButton> public string rteValue { get; set; } // Before using the value of the Rich Text Editor perform the below actions to remove the question mark. Regex rgx = new Regex(@"[\uFEFF\u200B]"); this.rteValue = rgx.Replace(this.rteValue, ""); |
Find the sample to inserts question marks when using formatting of text in Rich Text Editor from
here.