From 81fde99cb9ec57f93c8ae3a7786d311e47b0a1b9 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 20 Jun 2015 15:23:49 +0200 Subject: [PATCH] Fixed empty elements remaining after paste --- .../install/files/js/3rdParty/redactor/plugins/wutil.js | 6 ++++++ 1 file changed, 6 insertions(+) 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]); + } } }; }; -- 2.20.1