diff --git a/assets/redactor.js b/assets/redactor.js index e1210d2..11517b0 100755 --- a/assets/redactor.js +++ b/assets/redactor.js @@ -6234,13 +6234,13 @@ linkProtocol = ""; } + text = decodeURIComponent(text); + if (text.length > this.opts.linkSize) { text = text.substring(0, this.opts.linkSize) + '...'; } - text = decodeURIComponent(text); - var regexB = "\\b"; if ($.inArray(href.slice(-1), ["/", "&", "="]) != -1)