From: Alexander Ebert Date: Fri, 19 Aug 2016 11:38:06 +0000 (+0200) Subject: Fixed inserting tables X-Git-Tag: 3.0.0_Beta_1~667 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8d779d74fab2bae20ace96af98041cd749512334;p=GitHub%2FWoltLab%2FWCF.git Fixed inserting tables --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/table.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/table.js index 1c91a4f0a5..c645d59489 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/table.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/table.js @@ -207,7 +207,9 @@ this.buffer.set(); var current = this.selection.current(); - if ($(current).closest('li').length !== 0) + // see https://github.com/Redactor2/plugins/pull/3 + //if ($(current).closest('li').length !== 0) + if ($(current).closest('li', this.core.editor().get(0)).length !== 0) { $(current).closest('ul, ol').first().after(html); }