1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-23 23:42:56 +02:00

Fix splitNode offset when undoing joinNode

This commit is contained in:
Soreine
2016-11-09 11:21:24 +01:00
parent 4d33991358
commit 6b38caf72d

View File

@@ -105,7 +105,7 @@ export function insertTextOperation(transform, path, offset, text, marks) {
export function joinNodeOperation(transform, path, withPath) {
const { state } = transform
const { document } = state
const node = document.assertPath(path)
const node = document.assertPath(withPath)
const offset = node.length
const inverse = [{