X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/7bbeecb5dd5c5f20120f9e40e41568a3bff1caa4..55e6abd52da631d0a36ed13e12f5e1dfb2af0d92:/src/wolnelektury/static/js/book_text/references.js?ds=sidebyside 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);