fix selecting multiple paragraphs
This commit is contained in:
parent
dbdd49af23
commit
b7defc32e8
@ -21,7 +21,7 @@ if (typeof getSelection !== 'undefined') {
|
||||
}
|
||||
const focusNode = browserSelection.focusNode
|
||||
if (focusNode !== null && focusNode._yxml != null) {
|
||||
const yxml = anchorNode._yxml
|
||||
const yxml = focusNode._yxml
|
||||
relativeSelection.to = getRelativePosition(yxml, browserSelection.focusOffset)
|
||||
relativeSelection.toY = yxml._y
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user