mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-26 08:34:28 +02:00
moving over weird ghost text node if keys are the same (#1131)
This commit is contained in:
committed by
Ian Storm Taylor
parent
fd7981782c
commit
ca4075eb47
@@ -762,7 +762,7 @@ class Node {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get the start and end nodes.
|
// Get the start and end nodes.
|
||||||
const next = node.getNextText(startKey)
|
const next = node.getNextText(node.getNextText(startKey).key)
|
||||||
const startNode = node.getNextSibling(node.getFurthestAncestor(startKey).key)
|
const startNode = node.getNextSibling(node.getFurthestAncestor(startKey).key)
|
||||||
const endNode = startKey == endKey
|
const endNode = startKey == endKey
|
||||||
? node.getFurthestAncestor(next.key)
|
? node.getFurthestAncestor(next.key)
|
||||||
|
Reference in New Issue
Block a user