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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosemirror-transform",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "ProseMirror document transformations",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
package/src/replace.js CHANGED
@@ -241,7 +241,7 @@ class Fitter {
241
241
  }
242
242
 
243
243
  mustMoveInline() {
244
- if (!this.$to.parent.isTextblock || this.$to.end() == this.$to.pos) return -1
244
+ if (!this.$to.parent.isTextblock) return -1
245
245
  let top = this.frontier[this.depth], level
246
246
  if (!top.type.isTextblock || !contentAfterFits(this.$to, this.$to.depth, top.type, top.match, false) ||
247
247
  (this.$to.depth == this.depth && (level = this.findCloseLevel(this.$to)) && level.depth == this.depth)) return -1