I think I'm on the correct way. I registered one module this way:
$tw.utils.registerFileType("text/shell-script","utf8",".sh",{deserializerType:"text/shell"});
$tw.utils.each(deserializerDefinitions,function(deserializer){
$tw.modules.define(deserializer.name,"tiddlerdeserializer",deserializer.definition);
});
// Register again the modules
$tw.modules.applyMethods("tiddlerdeserializer",$tw.Wiki.tiddlerDeserializerModules);
I don't know if the last sentence is correct. One thing that I don't
understand is if I open a developers console and I look into the
$tw.Wiki.tiddlerDeserializerModules
object I can't see my deserializer. Why?
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.