Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

How to set limit to RTE for limited chars

Avatar

Level 4

Hi everyone,

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

 

Thanks and Regards

Saurabh Kumar

4 Replies

Avatar

Level 4

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 4

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