mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-20 16:42:02 +00:00
Swap over to the new mime type conventions
Discussed in https://groups.google.com/forum/#!topic/tiddlywikidev/re8xfLqZNCE
This commit is contained in:
@@ -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;
|
||||
|
||||
})();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user