Message Thread: |
View All MessagesBack to WebFX |
Caret position ? this finds a word.... From: Brian R. James Sent: May 7, 2004 Subject: Re:set caret position in contentEditable div 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(); From: adam 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.
Adam |