prosemirror-paste-rules
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -66,3 +66,3 @@ // packages/prosemirror-paste-rules/src/paste-rules-plugin.ts | ||
} | ||
return slice; | ||
return fixSliceOpening(slice); | ||
}, | ||
@@ -284,2 +284,6 @@ handleDOMEvents: { | ||
} | ||
function fixSliceOpening(slice) { | ||
const max = Slice.maxOpen(slice.content); | ||
return max.openStart < slice.openStart || max.openEnd < slice.openEnd ? max : slice; | ||
} | ||
export { | ||
@@ -286,0 +290,0 @@ isInCode, |
{ | ||
"name": "prosemirror-paste-rules", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Better handling of pasted content in your prosemirror editor.", | ||
@@ -39,5 +39,5 @@ "homepage": "https://github.com/remirror/remirror/tree/HEAD/packages/prosemirror-paste-rules", | ||
"devDependencies": { | ||
"prosemirror-model": "^1.18.1", | ||
"prosemirror-model": "^1.18.3", | ||
"prosemirror-state": "^1.4.2", | ||
"prosemirror-view": "^1.29.0" | ||
"prosemirror-view": "^1.29.1" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
120176
775