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:
@@ -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 = [{
|
||||
|
Reference in New Issue
Block a user