diff --git a/core/boot.js b/core/boot.js index e8672c785..ba6e25f13 100644 --- a/core/boot.js +++ b/core/boot.js @@ -66,7 +66,7 @@ $tw.config.jsModuleHeaderRegExpString = "^\\/\\*\\\\\\n((?:^[^\\n]*\\n)+?)(^\\\\ $tw.config.fileExtensionInfo = { ".tid": {type: "application/x-tiddler"}, ".tiddler": {type: "application/x-tiddler-html-div"}, - ".recipe": {type: "application/x-tiddlywiki-recipe"}, + ".recipe": {type: "application/vnd.tiddlywiki2-recipe"}, ".txt": {type: "text/plain"}, ".css": {type: "text/css"}, ".html": {type: "text/html"}, @@ -85,7 +85,7 @@ $tw.config.contentTypeInfo = { "text/vnd.tiddlywiki": {encoding: "utf8", extension: ".tid"}, "application/x-tiddler": {encoding: "utf8", extension: ".tid"}, "application/x-tiddler-html-div": {encoding: "utf8", extension: ".tiddler"}, - "application/x-tiddlywiki-recipe": {encoding: "utf8", extension: ".recipe"}, + "application/vnd.tiddlywiki2-recipe": {encoding: "utf8", extension: ".recipe"}, "text/plain": {encoding: "utf8", extension: ".txt"}, "text/css": {encoding: "utf8", extension: ".css"}, "text/html": {encoding: "utf8", extension: ".html"}, diff --git a/core/modules/commands/load.js b/core/modules/commands/load.js index 0b179c308..4fea99e28 100644 --- a/core/modules/commands/load.js +++ b/core/modules/commands/load.js @@ -36,7 +36,7 @@ Command.prototype.execute = function() { } else { var fields = {title: self.params[0]}, extname = path.extname(self.params[0]), - type = extname === ".html" ? "application/x-tiddlywiki" : extname; + type = extname === ".html" ? "application/vnd.tiddlywiki2" : extname; var tiddlers = self.commander.wiki.deserializeTiddlers(type,data,fields); if(!tiddlers) { self.callback("No tiddlers found in file \"" + self.params[0] + "\""); diff --git a/core/modules/deserializers.js b/core/modules/deserializers.js index c5cc79cb1..48da39605 100644 --- a/core/modules/deserializers.js +++ b/core/modules/deserializers.js @@ -75,7 +75,7 @@ exports["application/json"] = function(text,fields) { return result; }; -exports["application/x-tiddlywiki"] = function(text,fields) { +exports["application/vnd.tiddlywiki2"] = function(text,fields) { var locateStoreArea = function(tiddlywikidoc) { var startSaveArea = '