How to limit number of characters in Richtext field

lovepreetk75597

22-07-2020

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

Richtext RTE

Accepted Solutions (1)

Accepted Solutions (1)

Mayank_Gandhi

Employee

29-07-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.