rangy icon indicating copy to clipboard operation
rangy copied to clipboard

Added Element relative Highlighter Range.

Open Cavva79 opened this issue 10 years ago • 3 comments

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");

Cavva79 avatar Jan 15 '16 08:01 Cavva79

NAVER - http://www.naver.com/

[email protected] 님께 보내신 메일 <[rangy] Added Element relative Highlighter Range. (#367)> 이 다음과 같은 이유로 전송 실패했습니다.


받는 사람이 회원님의 메일을 수신차단 하였습니다.


writer0713 avatar Jan 15 '16 08:01 writer0713

@Cavva79 thanks for your work! I'm going to use your code base.

e1024kb avatar Oct 02 '18 00:10 e1024kb

@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.

Cavva79 avatar Oct 02 '18 07:10 Cavva79