Kuba Niegowski пре 5 година
родитељ
комит
1feadb9c2e
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      packages/ckeditor5-table/src/converters/upcasttable.js

+ 5 - 1
packages/ckeditor5-table/src/converters/upcasttable.js

@@ -93,7 +93,11 @@ export default function upcastTable() {
 /**
 /**
  * Conversion helper that skips empty <tr> from upcasting at the beginning of the table.
  * Conversion helper that skips empty <tr> from upcasting at the beginning of the table.
  *
  *
- * Empty row is considered a table model error if there are no cells spanned over that row.
+ * Empty row is considered a table model error but when handling clipboard data there could be rows that contain only row-spanned cells
+ * and empty TR-s are used to maintain table structure (also {@link module:table/tablewalker~TableWalker} assumes that there are only rows
+ * that have related tableRow elements).
+ *
+ * *Note:* Only first empty rows are removed because those have no meaning and solves issue of improper table with all empty rows.
  *
  *
  * @returns {Function} Conversion helper.
  * @returns {Function} Conversion helper.
  */
  */