@kaitify/core 0.0.2-beta.11 → 0.0.2-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/kaitify-core.es.js
CHANGED
|
@@ -36046,6 +36046,11 @@ const TableExtension = () => Extension.create({
|
|
|
36046
36046
|
if (isHideCell(node)) {
|
|
36047
36047
|
node.void = true;
|
|
36048
36048
|
}
|
|
36049
|
+
if (!node.hasChildren() || node.children.every((child) => child.isEmpty())) {
|
|
36050
|
+
const placeholderNode = KNode.createPlaceholder();
|
|
36051
|
+
node.children = [placeholderNode];
|
|
36052
|
+
placeholderNode.parent = node;
|
|
36053
|
+
}
|
|
36049
36054
|
}
|
|
36050
36055
|
if (node.isMatch({ tag: "colgroup" })) {
|
|
36051
36056
|
node.type = "block";
|
|
@@ -38014,7 +38019,7 @@ class Editor {
|
|
|
38014
38019
|
} else {
|
|
38015
38020
|
this.delete();
|
|
38016
38021
|
}
|
|
38017
|
-
this.insertNode(node);
|
|
38022
|
+
this.insertNode(node, cover);
|
|
38018
38023
|
return;
|
|
38019
38024
|
}
|
|
38020
38025
|
const offset = this.selection.start.offset;
|