Fixed pasting of text with embedded links
authorAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 10:02:08 +0000 (12:02 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 26 Sep 2017 10:02:08 +0000 (12:02 +0200)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index e8b9be81d03f4cd80df63364c8623550cc14a24a..23b79b071c0aac8b257acc054e21ef1c2debd41f 100644 (file)
@@ -360,7 +360,7 @@ $.Redactor.prototype.WoltLabClean = function() {
                                if (data.links && this.opts.pasteLinks) {
                                        elBySelAll('a', div, function(link) {
                                                if (link.href) {
-                                                       link.outerHTML = '##%%a href="' + link.href + '"%%##' + link.innerHTML + '##%%/a%##';
+                                                       link.outerHTML = '##%%a href="' + link.href + '"%%##' + link.innerHTML + '##%%/a%%##';
                                                }
                                        });