koca / vue-prism-editor

A dead simple code editor with syntax highlighting and line numbers. 3kb/gz
https://prism-editor.netlify.com
MIT License
751 stars 84 forks source link

How to get cursor selectionStart? #141

Open patrickphat opened 2 years ago

patrickphat commented 2 years ago

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)