prosemirror-tables
Advanced tools
Comparing version 0.7.9 to 0.7.10
{ | ||
"name": "prosemirror-tables", | ||
"version": "0.7.9", | ||
"version": "0.7.10", | ||
"description": "ProseMirror's rowspan/colspan tables component", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -260,13 +260,2 @@ // This file defines a number of table-related commands. | ||
} | ||
// empty rows cleanup | ||
let pos = rect.tableStart | ||
let table = tr.doc.nodeAt(Math.max(pos - 1, 0)) | ||
for (let i = 0; i < table.childCount; i++) { | ||
let row = table.child(i) | ||
if (!row.childCount) { | ||
let rowPos = tr.mapping.map(pos) | ||
tr.delete(rowPos, rowPos + row.nodeSize) | ||
} | ||
pos += row.nodeSize | ||
} | ||
tr.setNodeMarkup(mergedPos + rect.tableStart, null, | ||
@@ -273,0 +262,0 @@ setAttr(addColSpan(mergedCell.attrs, mergedCell.attrs.colspan, (rect.right - rect.left) - mergedCell.attrs.colspan), |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1021367
19147