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

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

Mark Solution

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

How to set limit to RTE for limited chars

Avatar

Level 5

Hi everyone,

Max length props not working in RTE how i can set char limit to achieve that.

 

Thanks and Regards

Saurabh Kumar

4 답변 개

Avatar

Level 4

Rte doesn't support max length you need to write custom js code for that  .

Please find the reference  

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/maxlength-property-for-ric...

Avatar

Level 5

Hi 

Thanks For reply.

I have tried this but it is not working for me.

Avatar

Community Advisor

You would need to write custom JS to limit the characters in the RTE. And then include the JS in your dialog.

 

Here is a link for the JS: 

http://jsfiddle.net/poikl/AvH3Q/

Avatar

Level 5

Hi @Anmol_Bhardwaj ,
If we use this JS then will not have full control on giving Input.