Swap over to the new mime type conventions

Discussed in
https://groups.google.com/forum/#!topic/tiddlywikidev/re8xfLqZNCE
This commit is contained in:
Jeremy Ruston
2012-11-18 15:22:13 +00:00
parent 744699fa35
commit 84650b9a54
41 changed files with 49 additions and 49 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ exports.executeMacro = function() {
Editor = this.wiki.macros.edit.editors[tiddler.fields.type];
}
if(!Editor) {
Editor = this.wiki.macros.edit.editors["text/x-tiddlywiki"];
Editor = this.wiki.macros.edit.editors["text/vnd.tiddlywiki"];
}
this.editor = new Editor(this);
// Call the editor to generate the child nodes
@@ -145,7 +145,7 @@ TextEditor.prototype.refreshInDom = function() {
this.fixHeight();
};
exports["text/x-tiddlywiki"] = TextEditor;
exports["text/vnd.tiddlywiki"] = TextEditor;
exports["text/plain"] = TextEditor;
})();
+1 -1
View File
@@ -102,7 +102,7 @@ exports.getTiddlerList = function() {
Create and execute the nodes representing the empty message
*/
exports.getEmptyMessage = function() {
var nodes = this.wiki.parseText("text/x-tiddlywiki",this.params.emptyMessage).tree;
var nodes = this.wiki.parseText("text/vnd.tiddlywiki",this.params.emptyMessage).tree;
for(var c=0; c<nodes.length; c++) {
nodes[c].execute(this.parents,this.tiddlerTitle);
}
+1 -1
View File
@@ -99,7 +99,7 @@ exports.executeMacro = function() {
}
// Get the render tree for the template
if(this.hasParameter("templateText")) {
renderTemplateTree = this.wiki.parseText("text/x-tiddlywiki",this.params.templateText).tree;
renderTemplateTree = this.wiki.parseText("text/vnd.tiddlywiki",this.params.templateText).tree;
} else {
if(this.hasParameter("template")) {
renderTemplateTitle = this.params.template;
+1 -1
View File
@@ -32,7 +32,7 @@ WikifiedViewer.prototype.render = function() {
parents = parents.slice(0);
parents.push(this.tiddler.fields.title);
} else {
children = this.viewMacro.wiki.parseText("text/x-tiddlywiki",this.value).tree;
children = this.viewMacro.wiki.parseText("text/vnd.tiddlywiki",this.value).tree;
}
// Clone and execute the parsed wikitext
for(t=0; t<children.length; t++) {