prosemirror-transform
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -0,1 +1,7 @@ | ||
## 1.2.7 (2020-07-09) | ||
### Bug fixes | ||
Fix an issue where in some cases replace fitting would insert an additional bogus node when fitting content into nodes with strict content restrictions. | ||
## 1.2.6 (2020-06-10) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -219,6 +219,8 @@ import {Fragment, Slice} from "prosemirror-model" | ||
this.placed = addToFragment(this.placed, frontierDepth, Fragment.from(add)) | ||
this.frontier[frontierDepth].match = match | ||
// If the parent types match, and the entire node was moved, and | ||
// it's not open, close this frontier node right away. | ||
if (toEnd && openEndCount < 0 && parent && parent.type == this.frontier[this.depth].type) this.closeFrontierNode() | ||
else this.frontier[frontierDepth].match = match | ||
@@ -239,3 +241,2 @@ // Add new frontier nodes for any open nodes at the end. | ||
sliceDepth - 1, openEndCount < 0 ? slice.openEnd : sliceDepth - 1) | ||
this.placed = addToFragment(this.placed, frontierDepth, Fragment.from(add)) | ||
} | ||
@@ -242,0 +243,0 @@ |
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
473267