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

[Jquery] StatusEditor CharLimit

Discussion in 'XenForo Development Discussions' started by Fuhrmann, Dec 1, 2011.

  1. Fuhrmann

    Fuhrmann Well-Known Member

    Is there a way to change the charlimit of the XenForo.StatusEditor by extending or something?

    This is how it is:

    __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.$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

Share This Page