From 8d779d74fab2bae20ace96af98041cd749512334 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 19 Aug 2016 13:38:06 +0200 Subject: [PATCH] Fixed inserting tables --- wcfsetup/install/files/js/3rdParty/redactor2/plugins/table.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.20.1