mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-29 21:09:56 +00:00
Adding a setting for default type so that it can be overridden for other wikis.
This commit is contained in:
parent
6fc02aa0c7
commit
07e56fd09e
@ -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({
|
||||
|
3
core/wiki/config/DefaultMissingType.tid
Normal file
3
core/wiki/config/DefaultMissingType.tid
Normal file
@ -0,0 +1,3 @@
|
||||
title: $:/config/DefaultMissingType
|
||||
|
||||
|
3
editions/markdowndemo/tiddlers/DefaultMissingType.tid
Normal file
3
editions/markdowndemo/tiddlers/DefaultMissingType.tid
Normal file
@ -0,0 +1,3 @@
|
||||
title: $:/config/DefaultMissingType
|
||||
|
||||
text/markdown
|
Loading…
Reference in New Issue
Block a user