Expand my Community achievements bar.

richtext max length

Avatar

Level 4

Hi,

is there a way to limit the number of characters inside a rich text?

I'm not able to find any listener to check the value.

3 Replies

Avatar

Level 10

Here is an article that talks about how to validate values that an author enters in a dialog. You need to write app logic to perform validation on dialog values- as discussed in the article. 

https://helpx.adobe.com/experience-manager/using/creating-touchui-validate.html

(PS - i believe text fields are used in artilce - i am checking to see if we can perform same thing on RTE). 

Avatar

Level 10

Hi Samuel,

I am testing on this use case. I will post the same once I find it works!!

Thanks,
Ratna Kumar.

Avatar

Administrator

Hi 

Please have a look at this article:- 

Link:- http://10codes.blogspot.in/2014/02/adding-custom-listener-on-rich-text.html

//Adding custom listener on rich text component in cq5 to impose maximum number of characters

Thanks and Regards

Kautuk Sahni



Kautuk Sahni