prosemirror-history
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -0,1 +1,7 @@ | ||
## 1.0.4 (2019-02-19) | ||
### Bug fixes | ||
Fix a bug that corrupted selection data in the history when applying remote steps in some cases. | ||
## 1.0.3 (2018-10-08) | ||
@@ -2,0 +8,0 @@ |
@@ -160,3 +160,3 @@ 'use strict'; | ||
var step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos]); | ||
var selection = item.selection && item.selection.map(mapping.slice(iRebased, pos)); | ||
var selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos)); | ||
if (selection) { eventCount++; } | ||
@@ -163,0 +163,0 @@ rebasedItems.push(new Item(map, step, selection)); |
{ | ||
"name": "prosemirror-history", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Undo history for ProseMirror", | ||
@@ -5,0 +5,0 @@ "main": "dist/history.js", |
@@ -153,3 +153,3 @@ import RopeSequence from "rope-sequence" | ||
let step = rebasedTransform.steps[pos].invert(rebasedTransform.docs[pos]) | ||
let selection = item.selection && item.selection.map(mapping.slice(iRebased, pos)) | ||
let selection = item.selection && item.selection.map(mapping.slice(iRebased + 1, pos)) | ||
if (selection) eventCount++ | ||
@@ -156,0 +156,0 @@ rebasedItems.push(new Item(map, step, selection)) |
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
75217
12