I am using the In Place editor for my rich text. I use the "inline-edit-finish" to capture the event and get my text to validate the maxlength as allowed. Any pointers on how i can mark my field as invalid when the text exceeds the maximum length?
Because, when i try to throw a pop-up and the author clicks ok the RTE gets saved irrespective of this.
Solved! Go to Solution.
Sreekanth written article on it. I am not able to find it but you can search on his site http://experience-aem.blogspot.com/. Otherwise you can get idea from http://experience-aem.blogspot.com/2015/08/aem-61-support-required-property-on-richtext-editor-rte-o...
I have asked "Sreekanth" to have a look at this one.
But some reference article worth reading:
// AEM6 | RTE validator plugin
// maxlength you can add a listener (validator) on click of OK button of dialog checking the length of the characters entered in RTE and validate accordingly.
Thanks kautuk and MC Stuff.
I have been able to validate the richtext for maxlength when I have in it my dialog. I am facing issues only with the In Place Editor.
We got this reply today for the maxlength validation for the In Place validation.
RTE in dialog uses the concept of validation from the Form Validation in Granite UI. And, since, Inline-editing does not behave as a form, it can’t use that validation concept.