コミュニティアチーブメントバーを展開する。

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

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

RTE Styles Plugin issue with Lists

Avatar

Community Advisor

We have RTE configured with Styles Plugin. When we are applying styles on lists, it is getting applied only on list element's text and not on bullets or the numbers.
This is happening because styles are getting added on <span> inside <li>.

Applied a style on listApplied a style on listRTE-2.PNG

Does anyone have any clue on how to apply styles on whole list element?

1 受け入れられたソリューション

Avatar

正解者
Community Advisor

Check below URL for the customization done for the list plugin for adding selected CSS class and use this approach to acheive your usecase:

http://experience-aem.blogspot.com/2017/05/aem-62-touch-ui-extend-rte-list-plugin-for-adding-selecte...

元の投稿で解決策を見る

3 返信

Avatar

Community Advisor

hi @salamswapnil,

 

Pls check the custom style plugin code, how it is applying the styles for list section.

 

I think you need to write custom code on the dailog load to fetch the list items and apply the styles once dailog is closed as List plugin gets loaded on the dailog on the fly in RTE

Thanks,

Kiran Vedantam.

Avatar

正解者
Community Advisor

Check below URL for the customization done for the list plugin for adding selected CSS class and use this approach to acheive your usecase:

http://experience-aem.blogspot.com/2017/05/aem-62-touch-ui-extend-rte-list-plugin-for-adding-selecte...

Avatar

Community Advisor

check the artcile shared by @Bhuwan_B 

if you need a generic style plugin the check https://aemlab.blogspot.com/2019/07/aem-rte-custom-plugins-1.html

Arun Patidar

AEM LinksLinkedIn