How to limit number of characters in Richtext field | Community
Skip to main content
lovepreetk75597
New Participant
July 22, 2020
Solved

How to limit number of characters in Richtext field

  • July 22, 2020
  • 2 replies
  • 1223 views

Hi Everyone,

 

We have one RTE field where we need to limit number of characters. As maxlength property is not supported by Richtext field so is there any another approach we can follow to limit characters in RTE.

Thanks in advance.

 

Regards,

lovepreet

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

@lovepreetk75597  Use Input text field and remove the border to make it look like RTE text.

 

 In RTE, edit source of HTML element using source edit, add an ID to the element. Now put a JS in code editor for the element that you have created and validate the length.

2 replies

Mayank_Gandhi
Mayank_GandhiAccepted solution
Employee
July 29, 2020

@lovepreetk75597  Use Input text field and remove the border to make it look like RTE text.

 

 In RTE, edit source of HTML element using source edit, add an ID to the element. Now put a JS in code editor for the element that you have created and validate the length.

Employee
July 22, 2020

Hi Lovepreet,

 

Please refer to the below forum thread. This might help you as discussed earlier.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/required-and-maxlength-properties-in-rich-text-field/qaq-p/212286

 

Regards

Sameer Dhawan