Added Element relative Highlighter Range.
Uses a DOM element as doc. This is more failsafe at HTML structure changes.
Now you can specify a DOM object in which you have to highlight. Highlighter start counting just inside this DOM object and not from the beginning of the page. With TextRange and this feature you can safely highlight and store it for different devices even if you have separate menus for those.
We are using this initialization:
rangy.createHighlighter(document.getElementById("selectableTextContainer"),"TextRange");
NAVER - http://www.naver.com/
[email protected] 님께 보내신 메일 <[rangy] Added Element relative Highlighter Range. (#367)> 이 다음과 같은 이유로 전송 실패했습니다.
받는 사람이 회원님의 메일을 수신차단 하였습니다.
@Cavva79 thanks for your work! I'm going to use your code base.
@ebaranov you are welcome. I was hoping this pull request merged cause I used in a project where Mobile and Desktop site version had different HTML but the div containing the highlightable text.