When I’m editing a html richtext field in a web browser, the text from the attachments in that field is added when you are editing the document.
So if you in a rich text field have an attachment called readme.txt, the text readme.txt is in the rich text field (as well as the attachment beneath the document)
This is not something I want,so my questions are:
-
Is there any way to avoid this.
-
Can I remove this text somehow?
I have tried to solve number 2. myself, but the script fails. I’m using lotus script, but I’m also a bit familiar with java.
When I try to find all the text strings with rtnav.FindFirstElement(RTELEM_TYPE_TEXTRUN) and
rtnav.FindNextElement(RTELEM_TYPE_TEXTRUN, these methods seem to also find the text of the attachments. Hence when I try to remove the text using rtRange.Remove this method fails.
I would appreciate any answers to these questions.