Hi there again,
I'm trying to figure out how to write a zimlet that does matchOn a regex both in mail and in the phonebook. Unfortunately, I've just been able to make it work, but it's now missing the highlighting functionality.
I mean, right now to make my contextmenus work in both areas (mail and phonebook) I had to specify
But this breaks the highlighting functionality. That is, you don't see it blue-colored and underlined!Code:<contentObject type="phone"> [...] </contentObject> <contentObject> [...] </contentObject>
If you separately specify (and removing the other section):
orCode:<contentObject type="phone"> [...] </contentObject>
you get a perfectly working zimlet either on the phonebook or the email section only!Code:<contentObject type="email"> [...] </contentObject>
By doing the following, it won't work anymore, or it works badly, or... (didn't keep track of each behavior, frankly....):
or just many other combos, like removing the types, or inventing a new one (such as wikipedia did -by the way, thought that you are supposed to use a built-in one...), or specifying a type in the second etc etc.Code:<contentObject type="phone"> [...] </contentObject> <contentObject type="email"> [...] </contentObject>
Useless to say, documentation doesn't say much about this...
And I couldn't find any zimlet that worked the same way I'm looking for...!
In other words, I tried almost everything! (ok, took me about 10 minutes, but victim-mode enhances my chances of being considered... ;-)
...


LinkBack URL
About LinkBacks

