Closed (works as designed)
Project:
MaxLength
Version:
6.x-2.0-beta1
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2010 at 05:43 UTC
Updated:
26 Aug 2021 at 19:10 UTC
Jump to comment: Most recent
Comments
Comment #1
JCB commentedthis would be ideal
Comment #2
smartsystems160 commentedsubscribing. This is how twitter.com does it. Also the drupal module facebook_style_statuses does it this way.
Comment #3
jienckebd commentedOpen js/maxlength.js and go to line 268. Change "after" to "before" in the following
$(this).after('<' + options.counterElement + ' id="' + $(this).attr('id') + '-' + options.css + '" class="' + options.css + '"></' + options.counterElement + '>');to
$(this).before('<' + options.counterElement + ' id="' + $(this).attr('id') + '-' + options.css + '" class="' + options.css + '"></' + options.counterElement + '>');This'll put it before the field. Then you'll see that the maxlength text uses the class "counter". Add the following CSS to get it to align to the right:
Comment #4
cedeweyThe Drupal 6 version of Maxlength is no longer supported so I'm marking this Closed (works as designed).
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.