diff --git a/core/modules/widgets/navigator.js b/core/modules/widgets/navigator.js index fbd340935..f4f216960 100755 --- a/core/modules/widgets/navigator.js +++ b/core/modules/widgets/navigator.js @@ -277,7 +277,8 @@ NavigatorWidget.prototype.makeDraftTiddler = function(targetTitle) { } // Get the current value of the tiddler we're editing var tiddler = this.wiki.getTiddler(targetTitle); - var defaultFields = { type: "text/markdown" }; + var defaultType = this.wiki.getTiddler("$:/config/DefaultMissingType"); + var defaultFields = { type: defaultType !== null ? defaultType.fields['text'].trim() : "" }; // Save the initial value of the draft tiddler draftTitle = this.generateDraftTitle(targetTitle); var draftTiddler = new $tw.Tiddler({ diff --git a/core/wiki/config/DefaultMissingType.tid b/core/wiki/config/DefaultMissingType.tid new file mode 100644 index 000000000..db2fc745e --- /dev/null +++ b/core/wiki/config/DefaultMissingType.tid @@ -0,0 +1,3 @@ +title: $:/config/DefaultMissingType + + diff --git a/editions/markdowndemo/tiddlers/DefaultMissingType.tid b/editions/markdowndemo/tiddlers/DefaultMissingType.tid new file mode 100644 index 000000000..2f725cd4c --- /dev/null +++ b/editions/markdowndemo/tiddlers/DefaultMissingType.tid @@ -0,0 +1,3 @@ +title: $:/config/DefaultMissingType + +text/markdown