On a related point, how can I insert text into the body so that:

 (a) p.bodyString() reflects the change, and
 (b) the cursor doesn't move to the end of the buffer

c.setBodyString(p, oldBodyStringWithCloseTag) works for (a) but fails
on (b)

w = c.frame.body.bodyCtrl; w.insert(pnt,closeTag) works for (b) but
fails for (a)... until you make a second change to the body text the
text added by w.insert() isn't seen.

Hmm, I guess the obvious answer is c.setBodyString() then move the
point back where you want it.

Cheers -Terry

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to leo-editor@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to