How to know the cursor position in the editor wordpress?

In text mode , the selectionStart property determines the cursor location correctly , but visually presents the reason for the position in the end (on the last word of the text)!
Thank you in advance!
September 18th 19 at 23:41
1 answer
September 18th 19 at 23:43
Solution

Find more questions by tags JavaScriptWordPress