Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
simbus82 opened this issue Feb 4, 2022 · 2 comments

Comments

@simbus82
Copy link

simbus82 commented Feb 4, 2022

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!

@rikschennink
Copy link
Owner

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.

@pcombet-adosis
Copy link

Hello,

I'm meeting the same issue with some of my clients wanting to go further than 160 char. Have alerted BrainTeenman here :
joomla/joomla-cms#36939 (comment)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants