mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-24 07:52:50 +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) {
|
export function joinNodeOperation(transform, path, withPath) {
|
||||||
const { state } = transform
|
const { state } = transform
|
||||||
const { document } = state
|
const { document } = state
|
||||||
const node = document.assertPath(path)
|
const node = document.assertPath(withPath)
|
||||||
const offset = node.length
|
const offset = node.length
|
||||||
|
|
||||||
const inverse = [{
|
const inverse = [{
|
||||||
|
Reference in New Issue
Block a user