@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.
- package/lib/kaitify-vue.es.js +4 -2
- package/lib/kaitify-vue.umd.js +1 -1
- package/package.json +2 -2
package/lib/kaitify-vue.es.js
CHANGED
|
@@ -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.
|
|
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({
|