I have plain vanilla textarea in my DCT with the FormAPI callout associated with it.There are no VFE, TinyMCE or any other Editor of this nature and I do not want themthere. Is it possible to figure out text area cursor position within JS function that I call?Relevant hints, tips and rtfm's welcome
Can you provide a bit more context here - FormAPI doesn't support key-stroke processing - it's "onItemChange" event handler only fires off when the focus leaves the textarea, and thus I'm not sure that there is a cursor position to capture.What, exactly, are you trying to accomplish?
Hmm - well, off the top-of-my-head, if you cannot get it to work within the Edit DCR window proper, perhaps you can have a callout button on the DCT form that launches a window with a basic HTML textarea (for which you can explicitly provide a name and id) and then do the javascript code necessary to track the cursor position in that textarea - and then use a submit button to transfer the finished result back down into the DCT form (perhaps an otherwise read-only textarea?)You could try to do it within the Edit DCR window proper, but I think that the way IWOV designed those forms is very convoluted with respect to the actual HTML entity item names and ids, such that trying to get a handle on it to use what might be fairly basic javascript, turns out to be a major headache.
...the biggest issue of [...] doing it directly with JS is getting a handle of *real* DOM textarea...