@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.
- package/dist/tiptap-core.cjs.js +2 -2
- package/dist/tiptap-core.cjs.js.map +1 -1
- package/dist/tiptap-core.esm.js +2 -2
- package/dist/tiptap-core.esm.js.map +1 -1
- package/dist/tiptap-core.umd.js +2 -2
- package/dist/tiptap-core.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/setTextSelection.ts +2 -2
package/dist/tiptap-core.esm.js
CHANGED
|
@@ -1193,8 +1193,8 @@ const setTextSelection = position => ({ tr, dispatch }) => {
|
|
|
1193
1193
|
const { from, to } = typeof position === 'number'
|
|
1194
1194
|
? { from: position, to: position }
|
|
1195
1195
|
: position;
|
|
1196
|
-
const minPos =
|
|
1197
|
-
const maxPos =
|
|
1196
|
+
const minPos = TextSelection.atStart(doc).from;
|
|
1197
|
+
const maxPos = doc.content.size;
|
|
1198
1198
|
const resolvedFrom = minMax(from, minPos, maxPos);
|
|
1199
1199
|
const resolvedEnd = minMax(to, minPos, maxPos);
|
|
1200
1200
|
const selection = TextSelection.create(doc, resolvedFrom, resolvedEnd);
|