标签: javascript jquery rangy
我刚下载了热门的Rangy library。我有以下html
Rangy library
<div id="myEditor" contenteditable="true"></div> <button>Submit</button>
这是我的jquery代码
$("button").on("click",function(){ var caretPosition = * how to do it; console.log(caretPosition); });