![](/img/trans.png)
[英]How to set the caret (cursor) position in a contenteditable element (div)?
[英]How do I set the caret/cursor position on a specific contenteditable div?
我需要另一个调用window.getSelection()的函数,所以这需要根据CED中的光标位置返回一个合适的值
我认为这就像你要得到的一样好...... 在contentEditable <div>上设置光标位置
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.