https://bugzilla.wikimedia.org/show_bug.cgi?id=29467
Web browser: ---
Bug #: 29467
Summary: jquery.byteLimit.js should use the length of the
current selection instead of the current value
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Javascript
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
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.
[1]
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/jquery/jquery.byteLimit.js?annotate=86982#l49
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l