contenteditable divs and setting the cursor position

  • Follow


Hi,

I am creating a WYSIWYG designer using 'contenteditable' div's. Does
anyone know how to set the cursor position within a content editable
div? (I have seen how do do this for input boxes but not div's)


Thanks,
Mark


Further Context
I am having to do some nasty intercepting of the keypresses to catch
when enter is pressed and replace the <p> tags with <br> so I don't
get a double line. I then need to set the cursor position to
immeditely after the <BR>

0
Reply MonkeeX (1) 8/6/2007 2:40:36 PM


0 Replies
662 Views

(page loaded in 0.199 seconds)

Similiar Articles:













7/21/2012 12:23:11 AM


Reply: