We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Option to Remove default <p></p> tag from Editor Source

Is there an option to have the Rich Text Editor not add in the default <p> </p> tags?

Is there a setting to use <br /> for line breaks instead of <p>?


Thanks!

2 Replies

VK Vinoth Kumar Sundara Moorthy Syncfusion Team August 9, 2019 12:31 PM UTC

Hi Brain, 
 
Good day to you. 
 
Query #1: “Is there an option to have the Rich Text Editor not add in the default <p> </p> tags?” 
Currently, we don't have support for this requirement with RichTextEditor. if we remove default tags, our functionalities could break. 
  
Query 2: Is there a setting to use <br /> for line breaks instead of <p>? 
 
By default, when you pressed the enter key, it will be inserted using <p> tag element in RichTextEditor component. We have already logged the feature request for ‘Customize the enter key behavior in Rich Text Editor’ in the RTE component. This feature will be included in any of our upcoming release. 
 
You can now track the status of this feature request using below link from our feedback portal, https://www.syncfusion.com/feedback/5369 
 
Regards, 
Vinoth Kumar S 



PS Priyanshi shah replied to Vinoth Kumar Sundara Moorthy December 1, 2022 06:46 AM UTC

Yes you can remove <p> tags ,

Use MarkupString when you bind your value.


Thanks & Regards,

Priyanshi Shah


Loader.
Live Chat Icon For mobile
Up arrow icon