mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-30 02:19:52 +02:00
Update find-point.js (#1373)
This commit is contained in:
committed by
Ian Storm Taylor
parent
9a5d97e6d1
commit
0a5bfd2adc
@@ -52,6 +52,7 @@ function findPoint(nativeNode, nativeOffset, value) {
|
||||
const voidNode = parentNode.closest(VOID_SELECTOR)
|
||||
if (!voidNode) return null
|
||||
rangeNode = voidNode.querySelector(RANGE_SELECTOR)
|
||||
if (!rangeNode) return null
|
||||
node = rangeNode
|
||||
offset = node.textContent.length
|
||||
}
|
||||
|
Reference in New Issue
Block a user