prosemirror-transform
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,1 +1,7 @@ | ||
## 1.1.6 (2019-11-01) | ||
### Bug fixes | ||
Fixes an issue where deleting a range from the start of block A to the end of block B would leave you with an empty block of type B. | ||
## 1.1.5 (2019-10-02) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -530,3 +530,3 @@ import {Fragment, Slice} from "prosemirror-model" | ||
for (let d = 1; d <= $from.depth; d++) { | ||
if (from - $from.start(d) == $from.depth - d && to > $from.end(d)) | ||
if (from - $from.start(d) == $from.depth - d && to > $from.end(d) && $to.end(d) - to != $to.depth - d) | ||
return this.delete($from.before(d), to) | ||
@@ -533,0 +533,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
288790