Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

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.