@kaitify/core 0.0.2-beta.12 → 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.
@@ -36046,7 +36046,7 @@ const TableExtension = () => Extension.create({
36046
36046
  if (isHideCell(node)) {
36047
36047
  node.void = true;
36048
36048
  }
36049
- if (!node.hasChildren()) {
36049
+ if (!node.hasChildren() || node.children.every((child) => child.isEmpty())) {
36050
36050
  const placeholderNode = KNode.createPlaceholder();
36051
36051
  node.children = [placeholderNode];
36052
36052
  placeholderNode.parent = node;
@@ -37331,7 +37331,9 @@ class Editor {
37331
37331
  const tag = dom.nodeName.toLocaleLowerCase();
37332
37332
  const namespace = dom.namespaceURI;
37333
37333
  if (this.emptyRenderTags.includes(tag)) {
37334
- return KNode.createZeroWidthText();
37334
+ return KNode.create({
37335
+ type: "text"
37336
+ });
37335
37337
  }
37336
37338
  if (tag == this.textRenderTag && dom.childNodes.length && Array.from(dom.childNodes).every((childNode) => childNode.nodeType == 3)) {
37337
37339
  return KNode.create({