Problem

The character count can successfully excludes the HTML tags but it stops user typing too early.

Screenshot

You can see the number of remaining is exactly the same as the number of character of <p></p>

Comments

jimmyko created an issue. See original summary.

jimmyko’s picture

Title: Character count cannot work properly with #maxlength_js_truncate_html » Character count cannot work properly with #maxlength_js_truncate_html and #maxlength_js_enforce
jimmyko’s picture

Title: Character count cannot work properly with #maxlength_js_truncate_html and #maxlength_js_enforce » Character count cannot work properly with #maxlength_js_truncate_html
jimmyko’s picture

I created a patch for fixing this project in the project I am working. Please help to review and evaluate. I feel free to improve the fix.

cedewey’s picture

Status: Active » Closed (won't fix)

We are only maintaining the Drupal 7 version of the module for critical security fixes, so I'm marking this Closed (won't fix). Thank you for working on this issue. If you do want to maintain the Drupal 7 version, do reach out. We'd be happy to bring you on board as a maintainer.

I also encourage you, if you haven't already, to upgrade your site to Drupal 8/9. We are actively maintaining that version and you would enjoy all of the other features of the latest version of Drupal.