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

2009-11-25 Thread frak
If I try to use the following code to add a link: tv.appendMarkup("And example of a link http://www.example/"+ m.group(1) + "\">Example"); Then all text I append after this is made into the same hyperlink, until I add a new hyperlink to somewhere else, which then is used to make all text into a l

[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 wrote: > > I can inject a link to the blip using SetAnnotation() but then

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

2009-10-07 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-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 pers

[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 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 > slightly more elegant s

[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("http://www.google.com\";>To Google "); I haven't used appendMarkup() before, so I am making an edu

[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 wrote: > > Absolutely perfect. Thank you so much! > > Here is th

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

2009-10-07 Thread EntropyFails
Absolutely perfect. Thank you so much! Here is the documentation for setAnnotation in TextView. I believe that is insufficient for me to have discovered this on my own. Is there a list of acceptable annotations anywhere? Can we get proper links to these in the documentation? void setAnnotation(R

[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 exa