Rich Text Editor - In Place Editing Maxlength Validation | Community
Skip to main content
saryus12413976
Level 2
March 24, 2017
Solved

Rich Text Editor - In Place Editing Maxlength Validation

  • March 24, 2017
  • 7 replies
  • 3225 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Sree is on vacations.

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

~kautuk

7 replies

MC_Stuff
Level 10
March 24, 2017

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-of-touchui.html

Thanks,

kautuk_sahni
Community Manager
Community Manager
March 27, 2017

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-manager.topic.html/forum__bsam-i_making_a_component.html

// 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
saryus12413976
Level 2
March 27, 2017

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
March 29, 2017

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

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
April 10, 2017

Sree is on vacations.

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

~kautuk

Kautuk Sahni
saryus12413976
Level 2
April 10, 2017

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

saryus12413976
Level 2
April 21, 2017

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.