1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-08 09:48:05 +00:00

Use text/x-tiddlywiki for old format TiddlyWiki text for compatibility

This commit is contained in:
Jeremy Ruston
2012-11-19 16:58:16 +00:00
parent d663368b9c
commit 3d38d4add3
11 changed files with 11 additions and 11 deletions

View File

@@ -469,7 +469,7 @@ TiddlyWebSyncer.prototype.storeTiddler = function(tiddlerFields,revision) {
if(result.type === "text/javascript") {
result.type = "application/javascript";
} else if(!result.type || result.type === "None") {
result.type = "text/vnd.tiddlywiki2";
result.type = "text/x-tiddlywiki";
}
// Save the tiddler
self.wiki.addTiddler(new $tw.Tiddler(self.wiki.getTiddler(result.title),result));

View File

@@ -183,6 +183,6 @@ WikiTextParser.prototype.subWikifyTerm = function(output,terminatorRegExp) {
this.output = oldOutput;
};
exports["text/vnd.tiddlywiki2"] = WikiTextParser;
exports["text/x-tiddlywiki"] = WikiTextParser;
})();