prosemirror-transform
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -345,5 +345,7 @@ import {Fragment, Slice} from "prosemirror-model" | ||
// Close the current open node if it's not the the root and we | ||
// either placed something, or the the current slice depth's node | ||
// type matches the open node's type | ||
if (this.open.length > 1 && (i > 0 || parent && this.open[this.open.length - 1].parent.type == parent.type)) | ||
// either placed up to the end of the node or the the current | ||
// slice depth's node type matches the open node's type | ||
if (this.open.length > 1 && | ||
(i > 0 && i == fragment.childCount || | ||
parent && this.open[this.open.length - 1].parent.type == parent.type)) | ||
this.closeNode() | ||
@@ -350,0 +352,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
262892
2917