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.
Views
Replies
Total Likes
Sree is on vacations.
I would request you to please create a day care ticket for the help.
~kautuk
Views
Replies
Total Likes
Hi Saryus,
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...
Thanks,
Views
Replies
Total Likes
I have asked "Sreekanth" to have a look at this one.
But some reference article worth reading:
Link:- https://aem6solutions.blogspot.in/2016/06/aem6-rte-validator-plugin.html
// 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.
~kautuk
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
Hey, any idea if this is the default behaviour of the In Place Editor?
Views
Replies
Total Likes
Sree is on vacations.
I would request you to please create a day care ticket for the help.
~kautuk
Views
Replies
Total Likes
Thanks kautuk. I will get back to you if we find a way to make this work!
Views
Replies
Total Likes
Hey Kautuk,
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.
Views
Likes
Replies