@tiptap/core 2.0.0-beta.140 → 2.0.0-beta.141
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/packages/core/src/style.d.ts +1 -1
- package/dist/packages/core/src/types.d.ts +1 -1
- package/dist/tiptap-core.cjs.js +8 -1
- package/dist/tiptap-core.cjs.js.map +1 -1
- package/dist/tiptap-core.esm.js +8 -1
- package/dist/tiptap-core.esm.js.map +1 -1
- package/dist/tiptap-core.umd.js +8 -1
- package/dist/tiptap-core.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/commands/focus.ts +9 -2
- package/src/style.ts +1 -0
- package/src/types.ts +1 -1
package/dist/tiptap-core.esm.js
CHANGED
|
@@ -509,13 +509,19 @@ function resolveSelection(state, position = null) {
|
|
|
509
509
|
to: 0,
|
|
510
510
|
};
|
|
511
511
|
}
|
|
512
|
+
const { size } = state.doc.content;
|
|
512
513
|
if (position === 'end') {
|
|
513
|
-
const { size } = state.doc.content;
|
|
514
514
|
return {
|
|
515
515
|
from: size,
|
|
516
516
|
to: size,
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
+
if (position === 'all') {
|
|
520
|
+
return {
|
|
521
|
+
from: 0,
|
|
522
|
+
to: size,
|
|
523
|
+
};
|
|
524
|
+
}
|
|
519
525
|
return {
|
|
520
526
|
from: position,
|
|
521
527
|
to: position,
|
|
@@ -2974,6 +2980,7 @@ img.ProseMirror-separator {
|
|
|
2974
2980
|
display: none;
|
|
2975
2981
|
pointer-events: none;
|
|
2976
2982
|
position: absolute;
|
|
2983
|
+
margin: 0;
|
|
2977
2984
|
}
|
|
2978
2985
|
|
|
2979
2986
|
.ProseMirror-gapcursor:after {
|