First: I am not entirely sure of the difference between ranges and selections.
I want to:
Highlight some text
Click on a button and wrap a class around the selected text (I am able to do this using rangy, BUT rangy needs the text to be in a highlighted state, BUT that click removes the highlight on the text.)
Question:
How do i reproduce the highlighted text after that click, so that rangy has something to work with?
Thanks!