I would like to move the selected text from one content div to another content div. And the selected text should append at the current caret position of the other div. Is there any way to get care position based on div id ? I observed in all the sources,the obtained caret position is always based on selection .
<body >
<div contenteditable="false" id='selectfromhere' >
some text select
</div>
<div contenteditable="true" id='movehere' >
some
</div>
<button>Click me</button>
</body>