From: Alexander Ebert Date: Sat, 20 Jun 2015 13:23:49 +0000 (+0200) Subject: Fixed empty elements remaining after paste X-Git-Tag: 2.1.5~17^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=81fde99cb9ec57f93c8ae3a7786d311e47b0a1b9;p=GitHub%2FWoltLab%2FWCF.git Fixed empty elements remaining after paste --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js index 10e76ca683..d41694bb41 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wutil.js @@ -1041,6 +1041,12 @@ RedactorPlugins.wutil = function() { $child.appendChild($node); } } + + // remove input elements + var inputElements = this.$editor[0].getElementsByTagName('INPUT'); + while (inputElements.length) { + inputElements[0].parentNode.removeChild(inputElements[0]); + } } }; };