내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

injecting custom css styles for html tags generated by RTE

Avatar

Level 4

Hi 

Is there any standard/ pre-defined way to inject styling information for html snippets generated from the rich text editor?

like <p> must be <p class="abc">  or adding attributes on the fly for html elements generated.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Administrator

For Custom Style plugin in RTE, 

Please refer to this community article:- 

Link:- https://mkbansal.wordpress.com/2016/01/09/aem-rte-custom-styles-plugin/

// AEM | RTE – Custom Styles Plugin

  1. RTE – Custom Styles Plugin – Touch UI
  2. RTE – Custom Styles Plugin – Classic UI

I hope this would help you.

~kautuk



Kautuk Sahni

원본 게시물의 솔루션 보기

6 답변 개

Avatar

Level 10

Out of the box - no. However - there may be a way using code. I am looking into this. 

Avatar

Level 10

Avatar

정확한 답변 작성자:
Administrator

For Custom Style plugin in RTE, 

Please refer to this community article:- 

Link:- https://mkbansal.wordpress.com/2016/01/09/aem-rte-custom-styles-plugin/

// AEM | RTE – Custom Styles Plugin

  1. RTE – Custom Styles Plugin – Touch UI
  2. RTE – Custom Styles Plugin – Classic UI

I hope this would help you.

~kautuk



Kautuk Sahni

Avatar

Level 2

Hi,

I am also facing the similar issue and i want to add the style into P tag like this <p style="margin-bottom:10px;"></p> while editing from RTE editor,

i am able to change via source edit,But is there anyway to add inline style to ptag ?

Avatar

Community Advisor

Avatar

Level 2

Hi Ankur,

Thank you for sharing the link and do we have any other option to control the styles in html rules or rte dialog ?