Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Rich Text Editor - In Place Editing Maxlength Validation

saryus12413976
Level 2
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
kautuk_sahni
Correct answer by
Community Manager
Community Manager

Sree is on vacations.

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

~kautuk

View solution in original post

7 Replies
MC_Stuff
Level 9
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,

kautuk_sahni
Community Manager
Community Manager

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

saryus12413976
Level 2
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.

saryus12413976
Level 2
Level 2

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

kautuk_sahni
Correct answer by
Community Manager
Community Manager

Sree is on vacations.

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

~kautuk

View solution in original post

saryus12413976
Level 2
Level 2

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

saryus12413976
Level 2
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.