diff --git a/table.js b/table.js index 1c91a4f..81d973c 100755 --- a/table.js +++ b/table.js @@ -207,7 +207,7 @@ this.buffer.set(); var current = this.selection.current(); - if ($(current).closest('li').length !== 0) + if ($(current).closest('li', this.core.editor().get(0)).length !== 0) { $(current).closest('ul, ol').first().after(html); }