prosemirror-transform
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -0,1 +1,7 @@ | ||
## 1.3.2 (2021-04-06) | ||
### Bug fixes | ||
Fix a regression in `dropPoint` that caused it to dereference undefined in some circumstances. | ||
## 1.3.1 (2021-04-01) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "prosemirror-transform", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "ProseMirror document transformations", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -284,3 +284,3 @@ import {Slice, Fragment} from "prosemirror-model" | ||
let wrapping = parent.contentMatchAt(insertPos).findWrapping(content.firstChild.type) | ||
fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0].type) | ||
fits = wrapping && parent.canReplaceWith(insertPos, insertPos, wrapping[0]) | ||
} | ||
@@ -287,0 +287,0 @@ if (fits) |
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
494047