I'm using a contenteditable
div to edit html content, and for some purpose, I need to get all nodes in selected range (window.getSelection()
). I don't know where to start.
Any ideas?
EDIT:
I just find the solution.
I'm using a contenteditable
div to edit html content, and for some purpose, I need to get all nodes in selected range (window.getSelection()
). I don't know where to start.
Any ideas?
EDIT:
I just find the solution.