mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Added new file types & stopped defaulting the content type of tiddlers
This commit is contained in:
parent
2d80115534
commit
2121ced4f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user