Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 15.41 KB
MD5: 10cd487096af551b123e4f63f462c38f
SHA-1: dbe8711696ec2fd311270286777414cca1391cb5
SHA-256: 57f1ab325ec53eca34c8d71d6888f716249945e5ff7df93ef45c6cfd39d3e40c
Download zip 22.1 KB
MD5: fccda7320f77a371e5408d948636e74e
SHA-1: 49f1e907d22bdd520d86133855131bf60fcac536
SHA-256: 8baee0109921f0696d30bc2deede0280baf1fd190534052cf87a6ebce9e4741a

Release notes

First release of MaxLength Words.

Extends the MaxLength module so a field limit can be counted in words instead of characters.

Features

  • New "Count" option (Characters / Words) in the MaxLength settings of text, text with summary, string, and link widgets.
  • Live word counter that reuses MaxLength's counter markup and styles (warning and error states).
  • The limit, the counter message, and "Hard limit" are configured in MaxLength as usual; the default message switches to words automatically.
  • Screen reader announcements when the word limit is near, reached, or exceeded.
  • "Hard limit": plain text inputs are trimmed while typing, and the limit is enforced on submit, including CKEditor 5 fields.
  • HTML tags and stand-alone punctuation (such as & or -) are not counted as words.

Requirements

  • Drupal 10.3 or 11
  • MaxLength 3.x
Created by: daniel.matcau
Created on: 10 Oct 2026 at 16:20 UTC
Last updated: 10 Oct 2026 at 16:20 UTC
New features

Other releases