JavaScript How to detect if selection is part of element

后端 未结 0 1793
南笙
南笙 2021-01-18 21:30

I have a small WYSIWYG editor built in JavaScript.

It is working by the getrange methode:

const range = window.getSelection().getRangeAt(0);
const oldC         


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