阅读背景:

在contentEditable 上设置光标位置

来源:互联网 

I am after a definitive, cross-browser solution to set the cursor/caret position to the last known position when a contentEditable='on' <div> regains focus. It appears default functionality of a content editable div is to move the caret/cursor to the beginning of the text in the div each time you click on it, which is undesirable.I am after a definitive, cross-browser solution




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: