plugins/editor/markup/script/00-jquery.textselection.js
Function Selection
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var Selection = (function() {
var hasRange = (typeof document.selection !== 'undefined' && typeof document.selection.createRange !== 'undefined');
return {
Function getSelectionRange
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
getSelectionRange: function(el) {
var start,
end,
range,
Function insertText
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
insertText: function(el, text, start, end, selectText) {