@kaitify/core 0.0.2-beta.7 → 0.0.2-beta.9

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.
@@ -37330,7 +37330,7 @@ class Editor {
37330
37330
  config.children = [];
37331
37331
  }
37332
37332
  let node = KNode.create(config);
37333
- if (!closed) {
37333
+ if (!node.isClosed()) {
37334
37334
  Array.from(dom.childNodes).forEach((child) => {
37335
37335
  if (child.nodeType == 1 || child.nodeType == 3) {
37336
37336
  const childNode = this.domParseNode(child);
@@ -37345,6 +37345,7 @@ class Editor {
37345
37345
  }
37346
37346
  if (typeof this.onDomParseNode == "function") {
37347
37347
  node = this.onDomParseNode.apply(this, [node]);
37348
+ console.log("node", node);
37348
37349
  }
37349
37350
  return node;
37350
37351
  }
@@ -38340,7 +38341,6 @@ class Editor {
38340
38341
  this.$el.removeAttribute("kaitify-placeholder");
38341
38342
  this.setDark(false);
38342
38343
  this.setEditable(false);
38343
- this.$el.innerHTML = "";
38344
38344
  event.off(this.$el, "beforeinput.kaitify compositionstart.kaitify compositionupdate.kaitify compositionend.kaitify keydown.kaitify keyup.kaitify copy.kaitify focus.kaitify blur.kaitify");
38345
38345
  }
38346
38346
  this.selection = new Selection();