0

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.

JS: Get array of all selected nodes in contentEditable div

Community
  • 1
  • 1
tomfriwel
  • 2,575
  • 3
  • 20
  • 47

0 Answers0