Hi,
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Samuel,
That is the default behavior of AEM RTE. Two things I could here to solve:
1. Overide OOTB rte and customize it ( might be time consuming )
2. While taking RTE content from dialog, put that content in 'div' tag with and 'id' attribute and then modify the CSS to remove the effect of p tag in 'id'
Example:
<div id = "rtecontent">
Your RTE content goes here...
</div>
CSS
#rtecontent p {
Your css to remove the effect which is causing UI issue goes here....
}
Not sure if this helps, but please have a look at these community articles:
Link:- http://stackoverflow.com/questions/17965276/disable-auto-adding-of-p-tagLink:- http://blogs.adobe.com/contentmanagement/tag/richtext/
Link:-https://mkbansal.wordpress.com/2016/01/02/aem-rte-remove-p-tag/
Link:- blogs.adobe.com/contentmanagement/tag/richtext/
Thanks and Regards
Kautuk Sahni
Views
Replies
Total Likes
Thanks.
If i create the component and insert only the letter X inside the rte, the assigned variable stores <p>X</p><p></p>
Why?
Hi Samuel,
That is the default behavior of AEM RTE. Two things I could here to solve:
1. Overide OOTB rte and customize it ( might be time consuming )
2. While taking RTE content from dialog, put that content in 'div' tag with and 'id' attribute and then modify the CSS to remove the effect of p tag in 'id'
Example:
<div id = "rtecontent">
Your RTE content goes here...
</div>
CSS
#rtecontent p {
Your css to remove the effect which is causing UI issue goes here....
}
Hi,
We have tried the above thing in one of the RTE component but it's breaking the Spellcheck Plugin .If we remove this html rules working fine.Is there any fix for this? This is happening for OOTB component?
We are using AEM 6.3 and service pack cp2
Thanks,
Vasu
same is happening in AEM 6.5 sp 6.5.10
When add removeSingleParagraphContainer property to richtext spellcheck plugin is not working
Any solution?
Utilising the miscTools feature that the RTE provides, and along with the AEM Sling Model backend, removing the P tags can be done without a problem,
Refer to this blog article for a full tutorial.
Hi Brian Thanks for your response
I am able to remove <p> tags by adding removeSingleParagraphContainer property to rte field. Here my problem is when I add removeSingleParagraphContainer property then spell check plugin is not working
Thanks in advance
removeSingleParagraphContainer will not work for touchUI rte, as this was a flagged used in the classicUI world.
ok Thank you
Views
Likes
Replies
Views
Likes
Replies