Expand my Community achievements bar.

SOLVED

Rich Text Editor - In Place Editing Maxlength Validation

Avatar

Level 2

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.

1 Accepted Solution

Avatar

Correct answer by
Administrator

Sree is on vacations.

I would request you to please create a day care ticket for the help.

~kautuk



Kautuk Sahni

View solution in original post

7 Replies

Avatar

Level 9

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,

Avatar

Administrator

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

Link:- http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

// 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



Kautuk Sahni

Avatar

Level 2

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.

Avatar

Level 2

Hey, any idea if this is the default behaviour of the In Place Editor?

Avatar

Correct answer by
Administrator

Sree is on vacations.

I would request you to please create a day care ticket for the help.

~kautuk



Kautuk Sahni

Avatar

Level 2

Thanks kautuk. I will get back to you if we find a way to make this work!

Avatar

Level 2

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.