How to set carriage / cursor position on a specific content div?

I need another function that calls window.getSelection (), so for this I need to return the corresponding value based on the cursor position in CED

+4
source share
1 answer

I think this is as good as you are going to get ... Set the cursor position to contentEditable <div>

0
source

Source: https://habr.com/ru/post/1335318/


All Articles