@tiptap/core 2.0.0-beta.168 → 2.0.0-beta.171
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 +3 -3
- package/dist/tiptap-core.cjs.js.map +1 -1
- package/dist/tiptap-core.esm.js +3 -3
- package/dist/tiptap-core.esm.js.map +1 -1
- package/dist/tiptap-core.umd.js +3 -3
- package/dist/tiptap-core.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/setTextSelection.ts +3 -3
- package/src/extensions/keymap.ts +1 -1
- package/src/helpers/injectExtensionAttributesToParseRule.ts +0 -1
package/dist/tiptap-core.umd.js
CHANGED
|
@@ -1191,8 +1191,8 @@
|
|
|
1191
1191
|
const { from, to } = typeof position === 'number'
|
|
1192
1192
|
? { from: position, to: position }
|
|
1193
1193
|
: position;
|
|
1194
|
-
const minPos =
|
|
1195
|
-
const maxPos =
|
|
1194
|
+
const minPos = 0;
|
|
1195
|
+
const maxPos = tr.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);
|
|
@@ -2098,7 +2098,7 @@
|
|
|
2098
2098
|
const pcKeymap = {
|
|
2099
2099
|
...baseKeymap,
|
|
2100
2100
|
Home: () => this.editor.commands.selectTextblockStart(),
|
|
2101
|
-
End: () => this.editor.commands.
|
|
2101
|
+
End: () => this.editor.commands.selectTextblockEnd(),
|
|
2102
2102
|
};
|
|
2103
2103
|
const macKeymap = {
|
|
2104
2104
|
...baseKeymap,
|