@kaitify/core 0.0.2-beta.13 → 0.0.2-beta.14

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.
@@ -35232,6 +35232,10 @@ const updateSelection = (editor, node, textNodes, newNodes) => {
35232
35232
  editor.selection.start.offset = offset - index;
35233
35233
  break;
35234
35234
  }
35235
+ if (offset >= index && i == newTextNodes.length - 1) {
35236
+ editor.selection.start.node = newTextNodes[i];
35237
+ editor.selection.start.offset = newTextNodes[i].textContent.length;
35238
+ }
35235
35239
  i++;
35236
35240
  index = newIndex;
35237
35241
  }
@@ -35249,6 +35253,10 @@ const updateSelection = (editor, node, textNodes, newNodes) => {
35249
35253
  editor.selection.end.offset = offset - index;
35250
35254
  break;
35251
35255
  }
35256
+ if (offset >= index && i == newTextNodes.length - 1) {
35257
+ editor.selection.end.node = newTextNodes[i];
35258
+ editor.selection.end.offset = newTextNodes[i].textContent.length;
35259
+ }
35252
35260
  i++;
35253
35261
  index = newIndex;
35254
35262
  }