prosemirror-view
Advanced tools
Comparing version 1.31.2 to 1.31.3
{ | ||
"name": "prosemirror-view", | ||
"version": "1.31.2", | ||
"version": "1.31.3", | ||
"description": "ProseMirror's view component", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -171,5 +171,6 @@ import {Slice, Fragment, DOMParser, DOMSerializer, ResolvedPos, NodeType, Node} from "prosemirror-model" | ||
let node = side < 0 ? fragment.firstChild! : fragment.lastChild!, inner = node.content | ||
if (fragment.childCount > 1) openEnd = 0 | ||
if (depth < to - 1) inner = closeRange(inner, side, from, to, depth + 1, openEnd) | ||
if (depth >= from) | ||
inner = side < 0 ? node.contentMatchAt(0)!.fillBefore(inner, fragment.childCount > 1 || openEnd <= depth)!.append(inner) | ||
inner = side < 0 ? node.contentMatchAt(0)!.fillBefore(inner, openEnd <= depth)!.append(inner) | ||
: inner.append(node.contentMatchAt(node.childCount)!.fillBefore(Fragment.empty, true)!) | ||
@@ -176,0 +177,0 @@ return fragment.replaceChild(side < 0 ? 0 : fragment.childCount - 1, node.copy(inner)) |
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
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
825464
24
16781