mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-24 14:59:51 -04:00
TTS: split document into ranges of block elements
This commit is contained in:
1 parent
cea9375561
commit
ecefeb86e1
3 files changed
+253
-101
No files matched your search
+1
-1
@@ -793,7 +793,7 @@ export class Paginator extends HTMLElement {
|
||||
}
|
||||
#selectAnchor() {
|
||||
const { defaultView } = this.#view.document
|
||||
if (this.#anchor instanceof defaultView.Range) {
|
||||
if (this.#anchor.startContainer) {
|
||||
const sel = defaultView.getSelection()
|
||||
sel.removeAllRanges()
|
||||
sel.addRange(this.#anchor)
|
||||
|
||||
Reference in new issue
Block a user