short-and-sweet icon indicating copy to clipboard operation
short-and-sweet copied to clipboard

Could be added a setting that allow to "overflow" the max characters in "maxlength"?

Open simbus82 opened this issue 3 years ago • 2 comments

In summary: there are many fields where it is necessary to indicate the maximum number of "recommended" characters without however blocking the insertion of a greater number of characters, allowing to overflow.

Is there a way to set the counter and not make it become the "max limit" of the field?

Maybe you can add an "option" that, if it is enabled or disabled, do a true limit or allow to "overflow" the maxlength setting.

Thanks a lot!

simbus82 avatar Feb 04 '22 15:02 simbus82

Happy to accept a PR.

This does require a couple changes.

  1. to enable the control we'd need to check for two attributes here, either maxlength or something like data-softmaxlength, and do the same here to get the value.

  2. additionally we'd have to show a different message when the soft max length is exceeded.

rikschennink avatar Feb 07 '22 07:02 rikschennink

Hello,

I'm meeting the same issue with some of my clients wanting to go further than 160 char. Have alerted BrainTeenman here : https://github.com/joomla/joomla-cms/issues/36939#issuecomment-1134829013

Any idea how to fix the max char count on a temp basis + how to fix it with - suggestion - having it dynamic via the Config > SEO dashboard (see my screen capture on link above). Thanks

Philippe

pcombet-adosis avatar May 23 '22 15:05 pcombet-adosis