prosemirror-transform
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -0,1 +1,7 @@ | ||
## 1.2.8 (2020-08-11) | ||
### Bug fixes | ||
Fix an issue where fitting a slice at the top level of the document would, in some circumstances, crash. | ||
## 1.2.7 (2020-07-09) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -224,3 +224,4 @@ import {Fragment, Slice} from "prosemirror-model" | ||
// it's not open, close this frontier node right away. | ||
if (toEnd && openEndCount < 0 && parent && parent.type == this.frontier[this.depth].type) this.closeFrontierNode() | ||
if (toEnd && openEndCount < 0 && parent && parent.type == this.frontier[this.depth].type && this.frontier.length > 1) | ||
this.closeFrontierNode() | ||
@@ -227,0 +228,0 @@ // Add new frontier nodes for any open nodes at the end. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
473671
4367