Ok. Been away for a few days, but I will get some more time to look at it
tonight. So far I have hooked in a class to the EditorUpdateEvent
(following the style setout in WaveTitleHandler).
Now I just need to parse the document for links.
On Dec 15, 2011 6:43 AM, "Daniel Danilatos" <[email protected]> wrote:

> Yup. And using EditorUpdateEvent is the right way to go (it's not to
> do with agents, as it's client-side).
>
> Dan
>
> On Fri, Dec 9, 2011 at 11:09 AM, Yuri Z <[email protected]> wrote:
> > No, AFAIK the code is legacy from Google Wave. I don't think that Linky
> > should be implemented as robot/robot agent. I guess you can just register
> > listener on update events and then insert the link annotation whenever
> text
> > in the edited blip looks like a URL.
> > So your suggestions sound right to me.
> >
> > On Fri, Dec 9, 2011 at 1:20 AM, Ali Lown <[email protected]> wrote:
> >
> >> There seem to be a few references to 'linky' distributed through the
> >> code (in doodad/Link and doodad/Suggestion) does this mean someone
> >> else is already implementing this?
> >>
> >> The diagram on the old FAQ [0] suggests that linky was implemented as
> >> an agent. Does this mean that it should be implement as a robot agent
> >> (eg. the Welcome Bot / the Password bot)? Does doing this not mean
> >> that linky would need to be added explicitly as a wave participant.
> >> Can this be done automatically and hidden?
> >>
> >> The text along with WAVE-275 suggests implementing as a 'listener' for
> >> performance reasons. I assume this means hooking it up to the
> >> EditorUpdateEvent class - where can I find information for how to make
> >> an agent do this?
> >>
> >> As for detecting the start/end of links, doodad/Link/Link.java has the
> >> WEB_SCHEMES collection which I assume I would want to listen for to
> >> find the start of the text needing annotating. Detecting the end could
> >> be done simply by a space in the text, surely? Since that wouldn't be
> >> a valid part of any URL.
> >>
> >> Is this anywhere near correct? Any comments/hints?
> >> Thanks.
> >>
> >> Ali
> >>
> >> [0]: http://www.waveprotocol.org/faq
> >>
>

Reply via email to