1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 14:48:19 +00:00

Added new file types & stopped defaulting the content type of tiddlers

This commit is contained in:
Jeremy Ruston 2012-05-29 21:58:44 +01:00
parent 2d80115534
commit 2121ced4f3

View File

@ -59,6 +59,8 @@ $tw.config.wikiTiddlersSubDir = $tw.config.wikiTiddlersSubDir || "./tiddlers";
// File extensions
$tw.config.fileExtensions = {
".tid": {type: "application/x-tiddler", encoding: "utf8"},
".tiddler": {type: "application/x-tiddler-html-div", encoding: "utf8"},
".recipe": {type: "application/x-tiddlywiki-recipe", encoding: "utf8"},
".txt": {type: "text/plain", encoding: "utf8"},
".css": {type: "text/css", encoding: "utf8"},
".html": {type: "text/html", encoding: "utf8"},
@ -372,7 +374,7 @@ $tw.Wiki.prototype.deserializeTiddlers = function(type,text,srcFields) {
fields[f] = srcFields[f];
}
if(!fields.type) {
fields.type = type;
// fields.type = type;
}
if(deserializer) {
return deserializer.call(this,text,fields);