I assume he wants to do it programmatically.

We discussed something similar at the bottom of this wave:
https://wave.google.com/wave/#restored:search:delete+python+new+selectors,restored:wave:googlewave.com!w%252B9Y0LYbKgC

We created code that would delete all the text and leave the button:

13 def OnClicked(event, wavelet):

14 blip = wavelet.root_blip

15 # Find the button in the blip using blip.first() selector

16 for start, end in blip.first(element.Button):

17 # Delete from title to before button

18 # +2 takes care of last character of title and newline

19 blip.range(len(wavelet.title)+2, start).delete()

20 # Find the button again, so we know the new start position

21 for start, end in blip.first(element.Button):

22 # Delete from after the button to the end of the blip

23 blip.range(end, len(blip.text)).delete()

I think you would need to do something similar to that - skipping over the
non-line elements you don't want to delete.

- pamela

On Thu, Apr 22, 2010 at 5:49 AM, tjb654 <[email protected]> wrote:

> In the Edit mode, you can select and delete text content.  Or do you
> mean something else?
>
> Tim
>
> On Apr 21, 8:26 am, Evgeniy Beschastnov <[email protected]>
> wrote:
> > Hi!
> >
> > I need to delete only text content from a blip. I tried several ways,
> > but no one gave me any result. Does anybody know if it is possible to
> > do this?
> >
> > Thanks, Evgeniy
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> [email protected]<google-wave-api%[email protected]>
> .
> > For more options, visit this group athttp://
> groups.google.com/group/google-wave-api?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-wave-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to