I have an HTML element lets say a div which contains plain text. The text should be selectable and wrap the selection into a tag (mark for example). That is already working.