Deleting text from rich text editor does not delete tags from source code

When we type something in rich text editor e.g. This is testing text.  And if we check or click on source code button then we can see html tags. like
<p>This is testing text.</p>

But when I delete or clear all text in rich text editor still there are html tags left behind. like <p></p><br> like this.
So how to delete source code also if I delete text from rich text editor. Thank you.


1 Reply 1 reply marked as answer

IS Indrajith Srinivasan Syncfusion Team November 2, 2020 08:23 AM UTC

Hi Dip, 
 
Greetings from Syncfusion support, 
 
We have validated your reported query. By default, the elements will be cleared when removing the Rich Text Editor text. Can you please share us the scenario, in which the elements are maintained in the editor using the below shared sample ? 
 
 
Also, you can also remove the value in the sourceCode preview, if the RTE value is empty. Check the above sample for reference. 
 
Please get back to us if you face any difficulties, 
 
Regards, 
Indrajith 


Marked as answer
Loader.
Up arrow icon