Rangy move boundaries of user selection out of header element
- by Frank
I'm using rangy and have a case with a contenteditable div where the users selection can be saved and later restored so that HTML can be inserted.
My problem is that if the user selects within a header element, I don't want the html inserted within a header.
So I'm trying to figure out how to use rangy so that if the the selection is made within…