prosemirror-transform 1.4.1 → 1.4.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.4.2 (2022-04-05)
2
+
3
+ ### Bug fixes
4
+
5
+ Make replacements that span to the end of a textblock more consistent with those ending in the middle of the block.
6
+
1
7
  ## 1.4.1 (2022-03-31)
2
8
 
3
9
  ### Bug fixes
package/dist/index.es.js CHANGED
@@ -1437,7 +1437,7 @@ Fitter.prototype.placeNodes = function placeNodes (ref) {
1437
1437
  };
1438
1438
 
1439
1439
  Fitter.prototype.mustMoveInline = function mustMoveInline () {
1440
- if (!this.$to.parent.isTextblock || this.$to.end() == this.$to.pos) { return -1 }
1440
+ if (!this.$to.parent.isTextblock) { return -1 }
1441
1441
  var top = this.frontier[this.depth], level;
1442
1442
  if (!top.type.isTextblock || !contentAfterFits(this.$to, this.$to.depth, top.type, top.match, false) ||
1443
1443
  (this.$to.depth == this.depth && (level = this.findCloseLevel(this.$to)) && level.depth == this.depth)) { return -1 }