@easy-editor/core 0.0.10 → 0.0.11

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.
@@ -6909,9 +6909,6 @@ class NodeChildren {
6909
6909
  if (i === index) {
6910
6910
  return;
6911
6911
  }
6912
- if (index === i) {
6913
- return;
6914
- }
6915
6912
  children.splice(index, 1);
6916
6913
  children.splice(i, 0, node);
6917
6914
  }
@@ -7387,7 +7384,7 @@ let Node$1 = class Node {
7387
7384
  return false;
7388
7385
  }
7389
7386
  insert(node, ref, useMutator = true) {
7390
- if (ref && typeof ref === 'number') {
7387
+ if (ref !== undefined && typeof ref === 'number') {
7391
7388
  const nodeInstance = ensureNode(node, this.document);
7392
7389
  this.children?.internalInsert(nodeInstance, ref, useMutator);
7393
7390
  } else {