@tiptap/core 2.0.0-beta.172 → 2.0.0-beta.173

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.
@@ -1191,8 +1191,8 @@
1191
1191
  const { from, to } = typeof position === 'number'
1192
1192
  ? { from: position, to: position }
1193
1193
  : position;
1194
- const minPos = 0;
1195
- const maxPos = tr.doc.content.size;
1194
+ const minPos = prosemirrorState.TextSelection.atStart(doc).from;
1195
+ const maxPos = doc.content.size;
1196
1196
  const resolvedFrom = minMax(from, minPos, maxPos);
1197
1197
  const resolvedEnd = minMax(to, minPos, maxPos);
1198
1198
  const selection = prosemirrorState.TextSelection.create(doc, resolvedFrom, resolvedEnd);