Wow! That's quite a suggestion!

Thanks - I'll try and decipher the code and see what I come up with :)

In the meantime, I've found a workaround. I've defined the object to
accept only an array of discrete values - a, em, i, h1, li etc. This
seems to work. Here is the result:
http://www.bhagwad.com/blog/2009/technology/inserting-html-tags-using-firefox-ubiquity.html
- the code is updated. Need to change the post to allow users to put
the URL for the "link" tag.

On Oct 17, 4:28 am, satyr <[email protected]> wrote:
> You'd have to write a custom noun of your own, like this:
>
> var noun_type_url_noselection = {
>   label: "URL",
>   suggest: function ntun_suggest(txt, htm, cb, selectionIndices) {
>     if (selectionIndices) return []; // suggest none for selection
>     if (/^(?!\w+:)/.test(txt)) txt = "http://"; + txt;
>     return [CmdUtils.makeSugg(txt, null, null, .5)];
>   },
>
> };
> On Sat, Oct 17, 2009 at 8:32 AM, Bhagwad <[email protected]> wrote:
>
> > Or rather, it seems to think that when I make a selection, the
> > selection is the "instrument" argument. I don't want that to happen.
>
> > How do we change this behavior?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" 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/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to