On the documentation page for trimByteLength, the return type is documented incorrectly as: return.newVal and return.trimmed. In addition, there in no link in the deprecated tag to the correct method.
To do:
- In the jquery.lengthLimit.js file, replace lines 37-39:
* @return {Object}
* @return {string} return.newVal
* @return {boolean} return.trimmedwith:
* @return {StringTrimmed}- Replace line 30:
* @deprecated Use `require( 'mediawiki.String' ).trimByteLength` instead.
with:
* @deprecated Use {@link module:mediawiki.String.trimByteLength require( 'mediawiki.String' ).trimByteLength} instead.- Run npm install and npm run doc to build the docs site
- Open docs/js/jQueryPlugins.html#.trimByteLength to confirm that both the type and deprecated links work