1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Correct the content type for tiddlers loaded from application/x-tiddler containers

This commit is contained in:
Jeremy Ruston 2012-05-08 15:19:42 +01:00
parent 8b0703b694
commit c63eb4c045

View File

@ -396,6 +396,7 @@ $tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/js","t
});
$tw.plugins.registerPlugin($tw.config.root + "/kernel/tiddlerdeserializer/tid","tiddlerdeserializer",{
"application/x-tiddler": function(text,fields) {
fields.type = "text/x-tiddlywiki";
var split = text.indexOf("\n\n");
if(split !== -1) {
fields = $tw.utils.parseFields(text.substr(0,split),fields);