[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-08 Thread masouras
I can inject a link to the blip using SetAnnotation() but then the WYSIWIG editor keeps the link going for any text that is typed after the link. DeleteAnnotations() won't work since the blip text ends right at the end of the link. Is there a way to signify the end of the link to the editor so it

[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-08 Thread Austin Chau (Google employee)
You can try to add a trailing space at the end of the anchor text and annotate the text just before the trailing space. This should prevent the autolinking to continue on. Austin On Wed, Oct 7, 2009 at 11:43 PM, masouras masou...@gmail.com wrote: I can inject a link to the blip using

[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-07 Thread Austin Chau (Google employee)
Glad to help :) Can you file a feature request to my documentation to include list of native annotation names? http://code.google.com/p/google-wave-resources/issues/list Thanks, Austin On Wed, Oct 7, 2009 at 11:58 AM, EntropyFails entropyfa...@gmail.comwrote: Absolutely perfect. Thank you so

[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-07 Thread GH
I just came across something in the Java API that I thought might be useful in your situation. It seems like the following may be a slightly more elegant solution: blip.getDocument().appendMarkup(a href=\http://www.google.com\;To Google /a); I haven't used appendMarkup() before, so I am making

[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-07 Thread Austin Chau (Google employee)
Thanks Greg, that would also work nicely without having to deal with annotation :) Austin On Wed, Oct 7, 2009 at 1:58 PM, GH gregjho...@gmail.com wrote: I just came across something in the Java API that I thought might be useful in your situation. It seems like the following may be a

[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-07 Thread EntropyFails
Greetings, appendMarkup() does work. I just tested it. Thank you for that! However, I'll be using Austin's approach because it allows in-place updating. Consider this as a request for Feature 76 please. I've added a comment there on adding replaceMarkup function as well. As a short aside, I

[Google Wave APIs] Re: Adding a HTML Anchor to a Wave via the Robot Protocol.

2009-10-06 Thread Austin Chau (Google employee)
Hi, If you just append the straight URL, Wave will automatically linkify into an anchor link with the URL as its anchor text. But it seems like you would like to have customized anchor text, you would need annotation to do that. The annotation name for anchor link is link/manual, this is an