1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-13 13:29:56 +00:00

Fixed default text when editting hitherto missing tiddlers

This commit is contained in:
Jeremy Ruston 2012-03-30 18:17:00 +01:00
parent c57d1efefe
commit 79a3941eca

View File

@ -48,7 +48,7 @@ exports.macro = {
storyRecord.title = "Draft of " + event.tiddlerTitle + " at " + (new Date());
storyRecord.template = template;
var tiddler = this.store.getTiddler(event.tiddlerTitle);
this.store.addTiddler(new Tiddler(tiddler,{title: storyRecord.title, "draft.title": event.tiddlerTitle}));
this.store.addTiddler(new Tiddler({text: "Type the text for the tiddler '" + event.tiddlerTitle + "'"},tiddler,{title: storyRecord.title, "draft.title": event.tiddlerTitle}));
}
}
this.store.addTiddler(new Tiddler(storyTiddler,{text: JSON.stringify(story)}));