From 1bad7488c8db1d0476effb881189b245df5df3db Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 28 Sep 2016 10:03:24 +0200 Subject: [PATCH] Fixed pasting of text only --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js index 4f86b60c3d..29a0d09905 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabPaste.js @@ -145,7 +145,7 @@ $.Redactor.prototype.WoltLabPaste = function() { var marker = elBySel('woltlab-selection-marker', this.$editor[0]); if (marker) { - this.caret.end(marker.previousElementSibling); + this.caret.end(marker.previousElementSibling || marker.parentNode); elRemove(marker); } -- 2.20.1