||View All MessagesBack to WebFX|
Adam, use a text range to set the caret position in an IE contentEditable div. The following code will search for the word space in the DIV and move the caret position.
var oRange = document.selection.createRange();
Sent: May 3, 2004
Subject: Re:set caret position in contentEditable div
Is there any way of setting (or getting) the caret position in an IE contentEditable div?
calling .focus() always puts it at the start.