• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[Jquery] StatusEditor CharLimit

Fuhrmann

Well-known member
#1
Is there a way to change the charlimit of the XenForo.StatusEditor by extending or something?

This is how it is:

Code:
__construct: function($input)
        {
            this.$input = $input
                .keyup($.context(this, 'update'))
                .keydown($.context(this, 'preventNewline'));
 
            this.$counter = $(this.$input.data('statusEditorCounter'));
            if (!this.$counter.length)
            {
                this.$counter = $('<span />').insertAfter(this.$input);
            }
            this.$counter
                .addClass('statusEditorCounter')
                .text('0');
 
            this.$form = this.$input.closest('form').bind(
            {
                AutoValidationComplete: $.context(this, 'saveStatus')
            });
 
            this.charLimit = 140; // Twitter max characters
            this.charCount = 0; // number of chars currently in use
 
            this.update();
        },