Add filterFunction to visible{Byte,CodePoint}Limit
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Fri, 22 Mar 2019 12:47:05 +0000 (13:47 +0100)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Fri, 22 Mar 2019 18:34:57 +0000 (19:34 +0100)
commitd9e82bb8078d2b59d047799adcf9226103fa9081
treed9563bd2ab3b7595790dda696c930af82d3d21b1
parentdf3d0914a34d9ef9827fb398d48469626caf94a8
Add filterFunction to visible{Byte,CodePoint}Limit

The underlying {byte,codePoint}Limit functions already supported this
parameter to apply to the string before limiting the length; add it to
the visible limiting functions as well, displaying the remaining
characters after the text is filtered.

Change-Id: Id8f039ef21ed64dd97c6711efa56d59bb0264669
resources/src/mediawiki.widgets.visibleLengthLimit/mediawiki.widgets.visibleLengthLimit.js