X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b17486a9270334855c3b908b8250e3a020803875..daa7b57502f01e4e091c9635d3f6fcc734e46159:/src/wolnelektury/static/js/book_text/references.js diff --git a/src/wolnelektury/static/js/book_text/references.js b/src/wolnelektury/static/js/book_text/references.js index ef6c51c94..fa4a35a69 100644 --- a/src/wolnelektury/static/js/book_text/references.js +++ b/src/wolnelektury/static/js/book_text/references.js @@ -615,7 +615,7 @@ let range = document.createRange(); let $p = $(this).nextAll('.paragraph').first() - range.selectNode($p[0]); + range.selectNodeContents($p[0]); sel.addRange(range); qbox.showForSelection(sel);