How to highlight a user selected text which is not contained within a single text node using vanilla js?

前端 未结 0 941
长发绾君心
长发绾君心 2020-12-15 12:30

i want to get the user selection then replace them with mark tag on each text node inside of an element if the user selected two text node which are child, grandchild (for

相关标签:
回答
  • 消灭零回复
提交回复
热议问题