Hi everyone,
I’ve been chasing my tail on this and hope is fading fast. I need to insert some text exactly where the cursor is in the body field.
I’m pretty certain it can’t be done through LS. Is there another way? APIs maybe?
Thanks very much for your time,
Rachel
Subject: Insert text in an rtitem where the cursor is - is there ANY way?
NotesuiDocument.insertText(“Hello World”)
should do exactly that!
HTH - Rufus.
Subject: RE: Insert text in an rtitem where the cursor is - is there ANY way?
Rufus!
Thank you, thank you, thank you!!

Rachel
P.S. A quick heads up to anyone else who might be trying this. If you use the inserttext in a button, you seem to have to gotofield first. When you gotofield, your cursor automatically goes to the beginning, and that’s where your insert takes place.
But… if you put it in a form action, then it does the insert whereever your cursor is. Thanks again, Rufus! 
Subject: RE: Insert text in an rtitem where the cursor is - is there ANY way?
I am trying to accomplish something similar, however I am not using a form - I am using an agent to generate a form via the web. I am trying to set up an automatic save feature on the web, however when the user is entering text into a text area and the automatic save fires, the cursor repositions to the top of the text area instead of where the user left off.
I don’t think this will work for my situation, as I don’t have a uidocument. Is there something I can do to accomplish this?
Thanks in advance.