Hi Koca, thanks for your contribution. May I know how can I get the selectionStart of the cursor? (my context is to build an autocompletion)