Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customizing text cursor in contenteditable element

Is it possible to customize blinking text cursor in a contenteditable="true" div tag?

Something like getting cursor position and putting a custom cursor on it, or any other trick?

like image 241
Mostafa Avatar asked Dec 06 '11 22:12

Mostafa


1 Answers

Not without drawing your own cursor (which is what Google Docs does, for example). Doing this is a major undertaking to get right and I wouldn't recommend it.

like image 77
Tim Down Avatar answered Sep 27 '22 21:09

Tim Down