JS: Get array of all selected nodes in contentEditable div

后端 未结 3 1462
既然无缘
既然无缘 2020-11-28 11:12

Hi I\'ve been working with contentEditable for a while now and I think I have a pretty good handle on it. One thing that\'s evading me is how to get an array of references t

3条回答
  •  温柔的废话
    2020-11-28 12:07

    Below Code is sample to solve your problem, below code return all selected node that in range

    
    
    
    
    payam jabbari
    
    
    
    
    
    

    Even a week ago, the idea of a Russian military intervention in Ukraine seemed far-fetched if not totally alarmist. But the arrival of Russian troops in Crimea over the weekend has shown that he is not averse to reckless adventures, even ones that offer little gain. In the coming days and weeks

    1. China says military will respond to provocations.
    2. This Man Has Served 20 Years—and May Die—in Prison for Marijuana.
    3. At White House, Israel's Netanyahu pushes back against Obama diplomacy.

提交回复
热议问题