M
MonkeyBoy
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>
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>