Like the title reads, I want to change the character of a caret. Maybe make it a letter or something?
Thanks.
You can do something near this, but its very dificult.
<img>
above textarea. Obs: the font must be monospaced. Ex: if every font have 20px and user press backspace, you slide this gif to the left 20px.
EDIT
I just made a hello world, in jsfiddle .
Of course, it's an example, but test typing and use backspace and enter to see caret go back and foward.
In this example there are a lot of bugs to fix, like:
Use of <backspace>
that cleans all line
Use of arrows that in overflow textarea margins
Use of mouse must update caret position...
在HTML / JavaScript中是不可能的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.