> I assume it's a load-order issue
> [...]
> There should be a more elegant solution
There is; simply re-evaluating the existing formatter's match pattern:
---------------
/***
spotify:foo
[[foo|spotify:foo]]
***/
//{{{
(function() {
config.textPrimitives.urlPattern = config.textPrimitives.urlPattern.
replace("data", "data|spotify");
var f = config.formatters.findByField("name", "urlLink");
config.formatters[f].match = config.textPrimitives.urlPattern;
})();
//}}}
---------------
However, I'm not entirely happy with that yet, as it should be easier to
extend the list of supported protocols.
That might be an issue for the dev group though...
-- F.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" 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/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---