@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.
@@ -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 {