Disable auto-adding p tag around text in Rich Text source edit mode
Hi Team,
I'm currently working on a custom component in AEM as a Cloud Service.
In the Rich Text Editor (RTE) field of my dialog, when switching to source edit mode (HTML view), I noticed that plain text input is automatically wrapped with <p> tags.
For example:
Input:
Hello WorldOutput:
<p>Hello World</p>
I would like to disable this behavior so that plain text remains unchanged, without being wrapped in <p> tags.
Is there any configuration available to prevent automatic <p> insertion in source mode?
Or would this require a custom plugin or overlay?
Thanks in advance for your help!