Javascript - Move caret backwards when I click on contentEditable div -


i have got contenteditable div , want move caret 1 field backwards after click on div. how can this?

this code. want move caret between , b when click between b , c

<div id="mainbox" contenteditable="true" spellcheck="false">      abc  </div>

thanks help.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -