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

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

Mark Solution

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

해결됨

In RTE I want to add some html tag

Avatar

Level 7

I wanted to add some HTML tags in RTE; with CSS class names how can I achieve that? If there is any possible way to do so. 
For Del tag, I tried creating it from text component policy but

Ronnie09_0-1674247472692.png

Now if I click on Paragraph it won't let me select, once Strikethrough (del) tag is selected

 

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor
4 답변 개

Avatar

Community Advisor

Hi @Ronnie09 ,

 

If you want to use tags in RTE, I suggest using data-sly-element.

<div data-sly-element="${properties.tagName}">Blah</div>
<!--/* outputs: */-->
<h1>Blah</h1>
Follow these steps if this requirement is repetitive.
1.  Use the above code in the HTML of the RTE component.
2. Determine tag Name from author dialog
 
Hope this helps,
Aditya Ch
2. 
Thanks,

Aditya Chabuku

Avatar

Level 7

Not like this but using style or paraformat 

Avatar

정확한 답변 작성자:
Community Advisor

Avatar

Level 4

Hi @Ronnie09 ,

 

You can use "Styles", which is another RTE plugin. The styles are implemented by adding <span> around the selected content therefore it will support multiple styles as well. Please see the documentation,

https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/configure-ric...

 

Thanks,