Currently, if a user fill the edit summary with a text which sums up 250 characters, such as
abcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghijABCDEFGHIJabcdefghij
the JS code from jquery.byteLimit.js will not let the user to type any other characters. So far so good. Nonetheless, it should let the user to replace a substring of the current summary (e.g. the last 10 characters), but it doesn't (even if the user selects the whole summary and type "why not?", which as only a few characters).
IIUC, this is because the script is testing the length of this.value[1] of the current input, instead of taking the length of the selected text into account.
Version: unspecified
Severity: normal