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?
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?
I agree with Tim, I wouldn't recommend it either.
However, here is a sample page with a
custom caret
used in a<textarea>
.. Just to give you an idea of how you can achieve this.I beleive this is the most basic implementation of a
custom caret
.Good luck implementing this in a
contenteditable
.. And I certainly hope this won't be your next question (:p) !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.