Topic: JS Manipulating Text in IE Textarea
I have this keen li'l edit box thingie (http://jsubb.nphoto.com) that allows a user to embed markup and live previews it below. There are link_to_function buttons that trigger the addition of markup, and everything is peachy-keen in Safari/Firefox and probably any other Gecko based browser. The problem is that IE has a completely different concept of the caret (insertion point) and selection.
I've seen some convoluted ways and some hacky ways to get at the textarea from IE, but so far nothing I think I can rely on. Has anyone had success with these in IE (remember it's a textarea):
- getting current caret location
- setting current caret location
- getting current selected text