@kaitify/vue 0.0.4-beta.20 → 0.0.4-beta.21

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.
@@ -35927,7 +35927,7 @@ const TableExtension = () => Extension.create({
35927
35927
  if (isHideCell(node)) {
35928
35928
  node.void = true;
35929
35929
  }
35930
- if (!node.hasChildren()) {
35930
+ if (!node.hasChildren() || node.children.every((child) => child.isEmpty())) {
35931
35931
  const placeholderNode = KNode.createPlaceholder();
35932
35932
  node.children = [placeholderNode];
35933
35933
  placeholderNode.parent = node;
@@ -37082,7 +37082,9 @@ class Editor {
37082
37082
  const tag = dom.nodeName.toLocaleLowerCase();
37083
37083
  const namespace = dom.namespaceURI;
37084
37084
  if (this.emptyRenderTags.includes(tag)) {
37085
- return KNode.createZeroWidthText();
37085
+ return KNode.create({
37086
+ type: "text"
37087
+ });
37086
37088
  }
37087
37089
  if (tag == this.textRenderTag && dom.childNodes.length && Array.from(dom.childNodes).every((childNode) => childNode.nodeType == 3)) {
37088
37090
  return KNode.create({