Install
Works with Drupal: ^8.8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
A big thank you to everyone who helped the MaxLength module reach its first stable release for Drupal 8+. We encourage site owners still using Maxlength 8.x-1.0-rc1 to upgrade to MaxLength 2.0 to benefit from all the improvements made, which include:
- HTML tags automatically excluded from character count
- Improved help text and user interface for configuration
- Fixes to several character count bugs
Note that short text fields now use a soft limit instead of a hard limit. If you upgrade from 1.0-rc1 to 2.0 your short text fields will use the soft limit method. If you do not want a soft limit on plain text fields, wait until we have completed the feature request #3259425: Configure limit method on plain text fields to upgrade to MaxLength 2.0.
Also note that for those using the Form API integration, that the required attribute field name changed from 'maxlength' to 'data-maxlength'.
To upgrade from 1.0-rc1 to 2.0 simply update to the new version and clear cache. Your character count limit configuration will be retained as well as the data in MaxLength-configured fields.
Read more about MaxLength 2.0 in our announcement, MaxLength Module 2.0 Out Now - Set Character Limits on Your Drupal Website
Contributors (10)
hipp2bsquare, Dmitriy.trt, cedewey, srdtwc, boehmrya, sinn, hawkeye.twolf, recrit, ph7, davedg629
Changelog
Issues: 4 issues resolved.
Changes since 2.0.0-rc2:
Bug
- #3233046 by hipp2bsquare, Dmitriy.trt, cedewey, srdtwc: Decode HTML entities when counting characters
- #3279224 by sinn, cedewey, srdtwc: Unused parameters exist in the config schema
Feature
- #3230544 by hipp2bsquare, cedewey, boehmrya: Apply safe truncate HTML behavior by default on rich text fields
- #3280195 by hawkeye.twolf, cedewey, recrit, ph7, davedg629: Remove the "Bypass Maxlength setting" permission