resources/src/jquery/jquery.textSelection.js
Function textSelection
has 247 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$.fn.textSelection = function ( command, commandOptions ) {
// Checks if you can try to use insertText (it might still fail).
function supportsInsertText() {
return $( this ).data( 'jquery.textSelection' ) === undefined &&
typeof document.execCommand === 'function' &&
Function encapsulateSelection
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
encapsulateSelection: function ( options ) {
return this.each( function () {
var selText, isSample,
pre = options.pre,
post = options.post;
File jquery.textSelection.js
has 251 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/*!
* These plugins provide extra functionality for interaction with textareas.
*
* - encapsulateSelection: Ported from skins/common/edit.js by Trevor Parscal
* © 2009 Wikimedia Foundation (GPLv2) - https://www.wikimedia.org