How to set limit to RTE for limited chars | Community
Skip to main content
Level 4
April 6, 2022

How to set limit to RTE for limited chars

  • April 6, 2022
  • 2 replies
  • 1124 views

Hi everyone,

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

 

Thanks and Regards

Saurabh Kumar

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Level 4
April 6, 2022

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-richtext-touch-ui/td-p/242529

Level 4
April 6, 2022

Hi 

Thanks For reply.

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

Anmol_Bhardwaj
Community Advisor
Community Advisor
April 6, 2022

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/

Level 4
June 1, 2022

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