Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

<STYLE> TAG NOT WORKING IN RTE

Avatar

Community Advisor

Hi,

I am using RTE source edit. I am copying the HTML into RTE source edit and it is not picking the CSS styles when we have the <section> tag. But if I replace the <section> tag with <div> tag, it is working fine. Could anyone help me to solve this issue?

Thanks.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi SINGAIAH CHINTALAPUDI

 

Agreeing with edubey, its working fine for me too.

Please have a look at the link: - https://docs.adobe.com/docs/en/cq/5-6-1/administering/configuring_rich_text_editor.html

I hope this will help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

6 Replies

Avatar

Level 10

Tried to replicate the issue, but couldnt, Please see screenshots.

Are you having a your own CSS, written somewhere in clientlib ?. Share the CSS style please.

Avatar

Community Advisor

edubey wrote...

Tried to replicate the issue, but couldnt, Please see screenshots.

Are you having a your own CSS, written somewhere in clientlib ?. Share the CSS style please.

 

Hi,

Correct. If you use CSS styles from the client lib then it is not applying that style. You can use any CSS style.

Thanks.

Avatar

Level 10

you should be able to see that css class applied in the page if not in the RTE. ofcourse within RTE the clientlibs will not be reachable and hence you cannot get the same experience.

Avatar

Level 10

Hi,

Thanks for making this clear, I m able to replicate this now. I seems that as section tag belongs to HTML5, sourceedit might not be able to support. Please raise a ticket so that you can get adobe's view on this.

Avatar

Correct answer by
Administrator

Hi SINGAIAH CHINTALAPUDI

 

Agreeing with edubey, its working fine for me too.

Please have a look at the link: - https://docs.adobe.com/docs/en/cq/5-6-1/administering/configuring_rich_text_editor.html

I hope this will help you.

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Community Advisor

kautuksahni wrote...

Hi SINGAIAH CHINTALAPUDI

 

Agreeing with edubey, its working fine for me too.

Please have a look at the link: - https://docs.adobe.com/docs/en/cq/5-6-1/administering/configuring_rich_text_editor.html

I hope this will help you.

 

Thanks and Regards

Kautuk Sahni

 

Hi,

Regular <section> tag is working. But when I use some css class name with that tag then it is working but not applying the styles.

Thanks.