From d40001d474bc8b6ee5c924312ada7732354944d1 Mon Sep 17 00:00:00 2001 From: bocceli Date: Tue, 26 Mar 2019 12:35:36 +0100 Subject: [PATCH] Table plugin fix (#159) --- src/assets/plugins/table/table.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/plugins/table/table.js b/src/assets/plugins/table/table.js index 7eb69d5..d8c5ed0 100755 --- a/src/assets/plugins/table/table.js +++ b/src/assets/plugins/table/table.js @@ -264,7 +264,7 @@ var $table = $(this.selection.getParent()).closest('table'); if (!this.utils.isRedactorParent($table)) return false; - if ($table.size() === 0) return false; + if ($table.length === 0) return false; return $table; }, @@ -347,7 +347,7 @@ this.buffer.set(); - if ($table.find('thead').size() !== 0) + if ($table.find('thead').length !== 0) { this.table.deleteHead(); return; @@ -371,7 +371,7 @@ if (!$table) return; var $thead = $table.find('thead'); - if ($thead.size() === 0) return; + if ($thead.length === 0) return; this.buffer.set();