dict.cc-translation icon indicating copy to clipboard operation
dict.cc-translation copied to clipboard

Highlight the translated text

Open Lusito opened this issue 8 years ago • 0 comments

Highlight the translated text somehow. (for example like the search highlighting) This should ideally not modify the dom at all. If it does modify the dom, it should have as little impact as possible to avoid problems with websites css.

APIs to look at: https://developer.mozilla.org/en-US/docs/Web/API/Range/getClientRects to create highlighted areas https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt to get range from current selection

Lusito avatar Apr 26 '16 17:04 Lusito