How to inserts question marks when using formatting of text in Rich Text Editor

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"> 

</SfRichTextEditor> 

 

<SfButtonType="submit"CssClass="e-primary"@onclick="@SaveText">Save</SfButton> 

 

@code{ 

    publicstring rteValue { get; set; } 

    publicvoidSaveText() 

    { 

        // 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.

Loader.
Up arrow icon