Line 122 of maxlength.js can be replaced with the following to support counting number of sms written in text area.
var msgnum = 0;
var msgrem = 0;
if(count <= 160) {
msgnum = 1;
msgrem = 160 - count;
} else {
msgnum = Math.ceil(count / 153);
msgrem = msgnum * 153 - count;
}
counter.html(options.counterText.replace('@limit', limit).replace('@remaining', available).replace('@count', count).replace('@msgnum', msgnum).replace('@msgrem', msgrem));
Comments
Comment #1
tutumlum commentedAny improvements?
Comment #2
cedeweyWe are putting a feature freeze on the Drupal 7 version of the module, so I'm marking this Closed, won't fix. Thank you everyone 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.